summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/__main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py
index f08520f..3e66cca 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -364,10 +364,10 @@ else:
conf_opts = [config_file] + parser.files
if config_file is not None:
code = None
- with open(file, 'rb') as script:
+ with open(config_file, 'rb') as script:
code = script.read()
code = code.decode('utf8', 'error') + '\n'
- code = compile(code, file, 'exec')
+ code = compile(code, config_file, 'exec')
g, l = globals(), dict(locals())
for key in l:
g[key] = l[key]