Preferences/ProgramsDialog.py

changeset 394
da5696492639
parent 308
f25c7e8802b8
child 426
161992758137
child 792
a13346916170
diff -r 5175a3a636e1 -r da5696492639 Preferences/ProgramsDialog.py
--- a/Preferences/ProgramsDialog.py	Sun Jul 18 15:34:37 2010 +0200
+++ b/Preferences/ProgramsDialog.py	Tue Jul 20 08:16:16 2010 +0200
@@ -21,6 +21,8 @@
 import Preferences
 import Utilities
 
+from eric5config import getConfig
+
 class ProgramsDialog(QDialog, Ui_ProgramsDialog):
     """
     Class implementing the Programs page.
@@ -137,11 +139,15 @@
         # 5. do the Eric5 programs
         # 5a. Translation Previewer
         self.__createProgramEntry(self.trUtf8("Eric5 Translation Previewer"), 
-            Utilities.isWindowsPlatform() and "eric5-trpreviewer.bat" or "eric5-trpreviewer", 
+            Utilities.isWindowsPlatform() and \
+                os.path.join(getConfig("bindir"), "eric5-trpreviewer.bat") or \
+                "eric5-trpreviewer", 
             '--version', 'Eric5', -3)
         # 5b. Forms Previewer
         self.__createProgramEntry(self.trUtf8("Eric5 Forms Previewer"), 
-            Utilities.isWindowsPlatform() and "eric5-uipreviewer.bat" or "eric5-uipreviewer", 
+            Utilities.isWindowsPlatform() and \
+                os.path.join(getConfig("bindir"), "eric5-uipreviewer.bat") or \
+                "eric5-uipreviewer", 
             '--version', 'Eric5', -3)
         
         # 6. do the CORBA programs

eric ide

mercurial