Skip to content

Commit

Permalink
Renamed the attribute 'exe_mode' to 'exe-mode' for consistency with '…
Browse files Browse the repository at this point in the history
…top-module'.
  • Loading branch information
zapta committed Apr 4, 2024
1 parent a59051d commit 8ea213f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apio/managers/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,11 @@ def _parse_exe_mode(config_parser: ConfigParser, parsed_attributes: set[str]) ->
* A string with "default" (default) or "native"
"""
# print(f"*** project.py: reading exe mode")
parsed_attributes.add("exe_mode")
exe_mode = config_parser.get("env", "exe_mode", fallback="default")
# print(f"*** {exe_mode =}")
parsed_attributes.add("exe-mode")
exe_mode = config_parser.get("env", "exe-mode", fallback="default")
if exe_mode not in {"default", "native"}:
print(f"Error: invalid {PROJECT_FILENAME} project file")
print("Optional attribute 'exe_mode' should have the value 'default' or 'native'.")
print("Optional attribute 'exe-mode' should have the value 'default' or 'native'.")
sys.exit(1)
return exe_mode

Expand Down

0 comments on commit 8ea213f

Please sign in to comment.