Commit 91934c52 authored by Stefan Behnel's avatar Stefan Behnel

fix broken name reference (probably after an incomplete refactoring)

parent 5ebd8968
...@@ -361,8 +361,7 @@ class Context(object): ...@@ -361,8 +361,7 @@ class Context(object):
def setup_errors(self, options, result): def setup_errors(self, options, result):
Errors.reset() # clear any remaining error state Errors.reset() # clear any remaining error state
if options.use_listing_file: if options.use_listing_file:
result.listing_file = Utils.replace_suffix(source, ".lis") path = result.listing_file = Utils.replace_suffix(result.main_source_file, ".lis")
path = result.listing_file
else: else:
path = None path = None
Errors.open_listing_file(path=path, Errors.open_listing_file(path=path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment