Skip to content

Commit

Permalink
Fixes Python 2.7 import issue, not linked to pywin
Browse files Browse the repository at this point in the history
  • Loading branch information
icaroscherma authored Jan 14, 2021
1 parent a7974f0 commit 823704c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2290,10 +2290,13 @@ class PDFDocument(object):
import win32api
import win32security
import win32file
import winreg
except:
raise ADEPTError('PyWin Extension (Win32API module) needed.\n'+\
'Download from http://sourceforge.net/projects/pywin32/files/ ')
try:
import winreg
except ImportError:
import _winreg as winreg
try:
v0 = win32api.GetVolumeInformation('C:\\')
v1 = win32api.GetSystemInfo()[6]
Expand Down

0 comments on commit 823704c

Please sign in to comment.