34 if sys.platform.startswith("win"): |
32 if sys.platform.startswith("win"): |
35 cdn = "_eric6" |
33 cdn = "_eric6" |
36 else: |
34 else: |
37 cdn = ".eric6" |
35 cdn = ".eric6" |
38 |
36 |
39 hp = QDir.homePath() |
37 hp = os.path.expanduser("~") |
40 dn = QDir(hp) |
38 hp = os.path.join(hp, cdn) |
41 dn.mkdir(cdn) |
39 if not os.path.exists(hp): |
42 hp += "/" + cdn |
40 os.mkdir(hp) |
43 try: |
41 return hp |
44 return QDir.toNativeSeparators(hp) |
|
45 except AttributeError: |
|
46 return QDir.toNativeSeparators(hp) |
|
47 |
42 |
48 # Define the globals. |
43 # Define the globals. |
49 progName = None |
44 progName = None |
50 configDir = getConfigDir() |
45 configDir = getConfigDir() |
51 privateInstall = False |
46 privateInstall = False |