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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 28 Sep 2015 19:06:06 +0200
changeset 4472
e4c9ee4a1718
parent 4471
2dedc0c4a8fa
child 4474
d823ad9e714d

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

install-i18n.py file | annotate | diff | comparison | revisions
--- a/install-i18n.py	Sun Sep 27 18:18:14 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