-
Notifications
You must be signed in to change notification settings - Fork 353
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
Adjust Windows DLL search path for Python 3.8+ #1440
base: main
Are you sure you want to change the base?
Adjust Windows DLL search path for Python 3.8+ #1440
Conversation
Signed-off-by: JGamache-autodesk <[email protected]>
# - https://docs.python.org/3.8/library/os.html#os.add_dll_directory | ||
import os | ||
import sys | ||
if sys.platform == "win32" and sys.version_info >= (3, 8): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we handle Python less than 3.8 by appending to PATH
or sys.path
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not. It was never done before and this code only became necessary in 3.8 when accessing PATH for library lookups was disabled because it was quite a large security risk.
Fixes #1439
Required by python/cpython#80266