Preferences/__init__.py

branch
5_3_x
changeset 2611
dd77cc80e343
parent 2507
593f33536261
child 2715
bf64950a357e
diff -r 3f785deb97eb -r dd77cc80e343 Preferences/__init__.py
--- a/Preferences/__init__.py	Sun Apr 21 13:04:02 2013 +0200
+++ b/Preferences/__init__.py	Mon Apr 22 20:24:58 2013 +0200
@@ -34,7 +34,7 @@
 import QScintilla.Lexers
 
 from Globals import settingsNameOrganization, settingsNameGlobal, settingsNameRecent, \
-    isWindowsPlatform, findPython2Interpreters
+    isWindowsPlatform, findPython2Interpreters, getPythonModulesDirectory
 
 from Project.ProjectBrowserFlags import SourcesBrowserFlag, FormsBrowserFlag, \
     ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \
@@ -2251,8 +2251,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