Globals/__init__.py

changeset 5823
70dfe6a4aa03
parent 5736
000ea446ff4b
child 5848
56388f41b1e6
equal deleted inserted replaced
5822:c61cd6803da2 5823:70dfe6a4aa03
139 if isWindowsPlatform(): 139 if isWindowsPlatform():
140 cdn = "_eric6" 140 cdn = "_eric6"
141 else: 141 else:
142 cdn = ".eric6" 142 cdn = ".eric6"
143 143
144 hp = QDir.homePath() 144 hp = os.path.join(os.path.expanduser("~"), cdn)
145 dn = QDir(hp) 145 if not os.path.exists(hp):
146 dn.mkdir(cdn) 146 os.mkdir(hp)
147 hp += "/" + cdn 147 return hp
148 return QDir.toNativeSeparators(hp)
149 148
150 149
151 def setConfigDir(d): 150 def setConfigDir(d):
152 """ 151 """
153 Module function to set the name of the directory storing the config data. 152 Module function to set the name of the directory storing the config data.

eric ide

mercurial