Made install-i18m.py independent of PyQt4/5. 6_0_x

Mon, 28 Sep 2015 19:06:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 28 Sep 2015 19:06:06 +0200
branch
6_0_x
changeset 4473
7048dbddbd00
parent 4469
b357abae5351
child 4478
6d10b1e55dc7

Made install-i18m.py independent of PyQt4/5.
(grafted from e4c9ee4a171871cd4d1388845514b3cda7170599)

install-i18n.py file | annotate | diff | comparison | revisions
diff -r b357abae5351 -r 7048dbddbd00 install-i18n.py
--- a/install-i18n.py	Sun Sep 27 11:08:04 2015 +0200
+++ b/install-i18n.py	Mon Sep 28 19:06:06 2015 +0200
@@ -16,8 +16,6 @@
 import shutil
 import glob
 
-from PyQt5.QtCore import QDir
-
 try:
     from eric6config import getConfig
 except ImportError:
@@ -36,14 +34,11 @@
     else:
         cdn = ".eric6"
         
-    hp = QDir.homePath()
-    dn = QDir(hp)
-    dn.mkdir(cdn)
-    hp += "/" + cdn
-    try:
-        return QDir.toNativeSeparators(hp)
-    except AttributeError:
-        return QDir.toNativeSeparators(hp)
+    hp = os.path.expanduser("~")
+    hp = os.path.join(hp, cdn)
+    if not os.path.exists(hp):
+        os.mkdir(hp)
+    return hp
     
 # Define the globals.
 progName = None

eric ide

mercurial