py3: use exec instead of execfile

This commit is contained in:
Frédéric Péters 2020-04-18 14:47:13 +02:00
parent f170c77aa6
commit 8d1c3fc7d3
1 changed files with 1 additions and 1 deletions

View File

@ -56,4 +56,4 @@ MIN_AGE = 60
local_settings_file = os.environ.get('EOBUILDER_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())