Skip to content

Instantly share code, notes, and snippets.

@cjac
Created April 5, 2018 21:53
Show Gist options
  • Save cjac/1ce69917f8252bb7bbb55182951db42a to your computer and use it in GitHub Desktop.
Save cjac/1ce69917f8252bb7bbb55182951db42a to your computer and use it in GitHub Desktop.
PS C:\Users\Administrator> type .\test-pywin32.py
#try:
import msvcrt
import win32api
import win32con
mvcrt.get_osfhandle
win32api.SetHandleInformation
win32con.HANDLE_FLAG_INHERIT
#except ImportError(e):
# print \
# "you do not seem to have the pywin32 extensions installed:\n" + \
# "\tparallel (-j) builds may not work reliably with open Python files."
# print e
PS C:\Users\Administrator> python .\test-pywin32.py
Traceback (most recent call last):
File ".\test-pywin32.py", line 3, in <module>
import win32api
ImportError: DLL load failed: The specified module could not be found.
PS C:\Users\Administrator>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment