3654:ffeb85cdc72d | 3656:441956d8fce5 |
---|---|
14 import sys | 14 import sys |
15 import os | 15 import os |
16 import shutil | 16 import shutil |
17 import glob | 17 import glob |
18 | 18 |
19 from PyQt4.QtCore import QDir | 19 from PyQt5.QtCore import QDir |
20 | 20 |
21 try: | 21 try: |
22 from eric5config import getConfig | 22 from eric5config import getConfig |
23 except ImportError: | 23 except ImportError: |
24 print("The eric5 IDE doesn't seem to be installed. Aborting.") | 24 print("The eric5 IDE doesn't seem to be installed. Aborting.") |
41 dn.mkdir(cdn) | 41 dn.mkdir(cdn) |
42 hp += "/" + cdn | 42 hp += "/" + cdn |
43 try: | 43 try: |
44 return QDir.toNativeSeparators(hp) | 44 return QDir.toNativeSeparators(hp) |
45 except AttributeError: | 45 except AttributeError: |
46 return QDir.convertSeparators(hp) | 46 return QDir.toNativeSeparators(hp) |
47 | 47 |
48 # Define the globals. | 48 # Define the globals. |
49 progName = None | 49 progName = None |
50 configDir = getConfigDir() | 50 configDir = getConfigDir() |
51 privateInstall = False | 51 privateInstall = False |