Preferences/__init__.py

changeset 2608
01118174a2f5
parent 2549
9ba512aa7c67
child 2614
9c49b4419ea7
--- a/Preferences/__init__.py	Mon Apr 15 19:36:22 2013 +0200
+++ b/Preferences/__init__.py	Mon Apr 22 20:24:58 2013 +0200
@@ -33,7 +33,7 @@
 from E5Network.E5Ftp import E5FtpProxyType
 
 from Globals import settingsNameOrganization, settingsNameGlobal, settingsNameRecent, \
-    isWindowsPlatform, findPython2Interpreters
+    isWindowsPlatform, findPython2Interpreters, getPythonModulesDirectory
 
 from Project.ProjectBrowserFlags import SourcesBrowserFlag, FormsBrowserFlag, \
     ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \
@@ -2332,8 +2332,8 @@
     if s == "":
         s = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
     if s == "" and isWindowsPlatform():
-        from PyQt4 import pyqtconfig
-        transPath = os.path.join(pyqtconfig._pkg_config["pyqt_mod_dir"], "translations")
+        transPath = os.path.join(getPythonModulesDirectory(),
+                                 "PyQt4", "translations")
         if os.path.exists(transPath):
             s = transPath
     return s

eric ide

mercurial