Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Python argparse option to supply additional DLL search paths for Windows #1415

Merged
merged 2 commits into from
Sep 25, 2021

Conversation

duanqn
Copy link
Contributor

@duanqn duanqn commented Sep 25, 2021

As stated in https://docs.python.org/3/library/os.html#os.add_dll_directory, Python 3.8+ on Windows uses DLL paths added with os.add_dll_directory, and the PATH is not used.

@duanqn duanqn marked this pull request as ready for review September 25, 2021 12:21
openage/__main__.py Outdated Show resolved Hide resolved
@@ -30,6 +30,13 @@ def main(args, error):
"""
del error # unused

win_dll_path_handles = []
import sys
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be a top-level import now that we use it twice or more ^^

heinezen
heinezen previously approved these changes Sep 25, 2021
@heinezen
Copy link
Member

One last thing: kevin complains about the import order :D

@heinezen heinezen merged commit ff1c69f into SFTtech:master Sep 25, 2021
@duanqn duanqn deleted the add-dll-paths branch September 25, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants