Skip to content

Commit

Permalink
cli: Use entrypoint path as DLL search path on Windows as default.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Feb 24, 2024
1 parent 6a7ad9a commit 6e7a043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openage/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ def main(argv=None):
)

if sys.platform == 'win32':
import inspect
cli.add_argument(
"--add-dll-search-path", action='append', dest='dll_paths',
default=[os.getcwd()],
# use path of current openage executable as default
default=[os.path.dirname(os.path.abspath(inspect.getsourcefile(lambda: 0)))],
help="(Windows only) provide additional DLL search path")

cli.add_argument("--version", "-V", action='store_true', dest='print_version',
Expand Down

0 comments on commit 6e7a043

Please sign in to comment.