You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change how the directory with the pywin32 DLLs is treated at startup.
This directory is now added to the start of PATH for version 3.7 and earlier,
and passed to os.add_dll_directory() on 3.8 and later. This will hopefully
work around problems loading pywintypes.dll in various situations.
Fixes#1432, fixes#1431
Copy file name to clipboardexpand all lines: pywin32.pth
+3-5
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
win32
3
3
win32\lib
4
4
Pythonwin
5
-
# Entries needed for a "portable" installations, where the post_install script
6
-
# isn't run, which would normally copy the pywin32 core DLL files to either
7
-
# the top of the python directory.
8
-
# We just stick the source of these DLLs directly on the PATH.
9
-
import os;pywin32_system32=os.path.join(sitedir,"pywin32_system32");os.environ["PATH"]+=('' if pywin32_system32 in os.environ["PATH"] else (';'+pywin32_system32))
5
+
# And some hackery to deal with environments where the post_install script
0 commit comments