eric6/Globals/__init__.py

branch
maintenance
changeset 8043
0acf98cd089a
parent 7924
8a96736d465e
parent 7923
91e843545d9a
child 8142
43248bafe9b2
--- a/eric6/Globals/__init__.py	Sun Jan 17 13:53:08 2021 +0100
+++ b/eric6/Globals/__init__.py	Mon Feb 01 10:38:16 2021 +0100
@@ -282,11 +282,14 @@
     path = ""
     
     # step 1: check, if the user has configured a tools path
-    path = Preferences.getQt("PyQtToolsDir")
+    if version == 5:
+        path = Preferences.getQt("PyQtToolsDir")
+    elif version == 6:
+        path = Preferences.getQt("PyQt6ToolsDir")
     
-    # step 2: determine from used Python interpreter (pyrcc is test object)
+    # step 2: determine from used Python interpreter (pylupdate is test object)
     if not path:
-        program = "pyrcc{0}".format(version)
+        program = "pylupdate{0}".format(version)
         if isWindowsPlatform():
             program += ".exe"
             dirName = os.path.dirname(sys.executable)

eric ide

mercurial