Skip to content

Commit

Permalink
fix mergetool_suite_import
Browse files Browse the repository at this point in the history
  • Loading branch information
zapster committed Feb 10, 2024
1 parent 2fe0e3c commit dc58f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mx/_impl/mergetool.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def read_suite_imports(filename):
exec(local_fp.read(), my_globals, my_locals) # pylint: disable=exec-used
except Exception as ex: # pylint: disable=broad-except
_fallback(f"Cannot load suite file {filename}: {ex}")
return locals.get("suite", {}).get("imports", {}).get("suites")
return my_locals.get("suite", {}).get("imports", {}).get("suites")

def to_import_dict(suite_imports):
return {s["name"]: s["version"] for s in suite_imports if "version" in s}
Expand Down

0 comments on commit dc58f56

Please sign in to comment.