diff --git a/debian/debian_config.py b/debian/debian_config.py index 2625333e..88bb4bac 100644 --- a/debian/debian_config.py +++ b/debian/debian_config.py @@ -10,7 +10,7 @@ PROJECT_NAME = 'passerelle' # # hobotization (multitenant) # -execfile('/usr/lib/hobo/debian_config_common.py') +exec(open('/usr/lib/hobo/debian_config_common.py').read()) # disable django-mellon autologin MELLON_OPENED_SESSION_COOKIE_NAME = None @@ -22,7 +22,7 @@ LOGGING['loggers']['suds'] = { 'propagate': True, } -execfile('/etc/%s/settings.py' % PROJECT_NAME) +exec(open('/etc/%s/settings.py' % PROJECT_NAME).read()) # run additional settings snippets -execfile('/usr/lib/hobo/debian_config_settings_d.py') +exec(open('/usr/lib/hobo/debian_config_settings_d.py').read()) diff --git a/passerelle/settings.py b/passerelle/settings.py index fd18d65f..e3386a69 100644 --- a/passerelle/settings.py +++ b/passerelle/settings.py @@ -246,4 +246,4 @@ LOGGING = { local_settings_file = os.environ.get('PASSERELLE_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')) if os.path.exists(local_settings_file): - execfile(local_settings_file) + exec(open(local_settings_file).read())