diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-20 02:05:02 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-20 02:05:02 +0100 |
commit | 96a39dae1262cb61ef7cb80d266900ba3b241fa9 (patch) | |
tree | 7ff1a23df24c9070190390ea06bc616d5e6f7185 /src/__main__.py | |
parent | more on invoking (diff) | |
download | blueshift-96a39dae1262cb61ef7cb80d266900ba3b241fa9.tar.gz blueshift-96a39dae1262cb61ef7cb80d266900ba3b241fa9.tar.bz2 blueshift-96a39dae1262cb61ef7cb80d266900ba3b241fa9.tar.xz |
fix -c bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-x | src/__main__.py | 4 |
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] |