scripts/uninstall-debugclients.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7360
9190402e4505
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
15 import sys 15 import sys
16 import os 16 import os
17 import shutil 17 import shutil
18 import distutils.sysconfig 18 import distutils.sysconfig
19 19
20 if sys.version_info[0] == 2:
21 try:
22 from PyQt5 import sip
23 except ImportError:
24 import sip
25 sip.setapi('QString', 2)
26
27 # Define the globals. 20 # Define the globals.
28 progName = None 21 progName = None
29 currDir = os.getcwd() 22 currDir = os.getcwd()
30 modDir = None 23 modDir = None
31 pyModDir = None 24 pyModDir = None
39 @param rcode result code to report back (integer) 32 @param rcode result code to report back (integer)
40 """ 33 """
41 global currDir 34 global currDir
42 35
43 if sys.platform.startswith("win"): 36 if sys.platform.startswith("win"):
44 # different meaning of input between Py2 and Py3
45 try: 37 try:
46 input("Press enter to continue...") 38 input("Press enter to continue...")
47 except (EOFError, SyntaxError): 39 except (EOFError, SyntaxError):
48 pass 40 pass
49 41

eric ide

mercurial