install-i18n.py

branch
6_0_x
changeset 4473
7048dbddbd00
parent 4022
f5f42921717e
child 4563
881340f4bd0c
child 4632
ca310db386ed
equal deleted inserted replaced
4469:b357abae5351 4473:7048dbddbd00
13 13
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
19 from PyQt5.QtCore import QDir
20 18
21 try: 19 try:
22 from eric6config import getConfig 20 from eric6config import getConfig
23 except ImportError: 21 except ImportError:
24 print("The eric6 IDE doesn't seem to be installed. Aborting.") 22 print("The eric6 IDE doesn't seem to be installed. Aborting.")
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

eric ide

mercurial