# or implied, of GRNET S.A.
from glob import glob
-from os.path import abspath, dirname, join
+from os import umask
+from os.path import abspath, dirname, exists, join
PROJECT_PATH = dirname(abspath(__file__))
for conf in sorted(conffiles):
execfile(conf)
-execfile(join(PROJECT_PATH, 'settings.local'))
+
+conf = join(PROJECT_PATH, 'settings.local')
+
+if exists(conf):
+ execfile(conf)
+elif exists('/etc/pithos/settings.local'):
+ execfile('/etc/pithos/settings.local')