make sip optional
Change-Id: I8afe4d37d1ad918ed94b3606dbe1b703a769b5b3
This commit is contained in:
parent
c5671dd26e
commit
f2006607b2
@ -21,6 +21,10 @@
|
||||
#
|
||||
# *****************************************************************************
|
||||
|
||||
try:
|
||||
import sip
|
||||
sip.setapi('QString', 2)
|
||||
sip.setapi('QVariant', 2)
|
||||
except ImportError:
|
||||
print('can not import sip, the gui may not work as expected')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user