Skip to content

Commit

Permalink
cli: Store DLL manager for fallback subparser.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed May 18, 2024
1 parent afb0486 commit 1ba66ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openage/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,10 @@ def main(argv=None):

args = cli.parse_args(argv)

dll_manager = None
if sys.platform == 'win32':
args.dll_manager = add_dll_search_paths(args.dll_paths)
args.dll_manager.add_directories()

else:
args.dll_manager = None
dll_manager = add_dll_search_paths(args.dll_paths)
dll_manager.add_directories()

if args.print_version:
print_version()
Expand All @@ -143,6 +141,8 @@ def main(argv=None):
# the user didn't specify a subcommand. default to 'main'.
args = main_cli.parse_args(argv)

args.dll_manager = dll_manager

# process the shared args
set_loglevel(verbosity_to_level(args.verbose - args.quiet))

Expand Down

0 comments on commit 1ba66ab

Please sign in to comment.