mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e1b4033ee6
commit
40f764283b
@ -100,7 +100,7 @@ def get_sip_dir(q):
|
||||
base = os.path.join(q, x)
|
||||
if os.path.exists(os.path.join(base, 'QtWidgets')):
|
||||
return base
|
||||
return q
|
||||
raise EnvironmentError('Failed to find the location of the PyQt5 .sip files')
|
||||
pyqt['pyqt_sip_dir'] = get_sip_dir(sys.prefix if iswindows else os.path.join(sys.prefix, 'share', 'sip'))
|
||||
pyqt['sip_inc_dir'] = sysconfig.get_path('include')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user