Globals/__init__.py

changeset 5823
70dfe6a4aa03
parent 5736
000ea446ff4b
child 5848
56388f41b1e6
--- a/Globals/__init__.py	Fri Jul 28 19:20:41 2017 +0200
+++ b/Globals/__init__.py	Tue Aug 01 15:49:41 2017 +0200
@@ -141,11 +141,10 @@
         else:
             cdn = ".eric6"
             
-        hp = QDir.homePath()
-        dn = QDir(hp)
-        dn.mkdir(cdn)
-        hp += "/" + cdn
-    return QDir.toNativeSeparators(hp)
+        hp = os.path.join(os.path.expanduser("~"), cdn)
+        if not os.path.exists(hp):
+            os.mkdir(hp)
+    return hp
 
 
 def setConfigDir(d):

eric ide

mercurial