Changed algorithm to detect eric tools. 5_0_x

Tue, 20 Jul 2010 08:17:01 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 20 Jul 2010 08:17:01 +0200
branch
5_0_x
changeset 395
b272cad19676
parent 391
68e4164b709d
child 400
8601082da32e

Changed algorithm to detect eric tools.

.issues/.properties file | annotate | diff | comparison | revisions
Plugins/PluginEricapi.py file | annotate | diff | comparison | revisions
Plugins/PluginEricdoc.py file | annotate | diff | comparison | revisions
Preferences/ProgramsDialog.py file | annotate | diff | comparison | revisions
--- a/.issues/.properties	Wed Jul 14 21:40:32 2010 +0200
+++ b/.issues/.properties	Tue Jul 20 08:17:01 2010 +0200
@@ -1,19 +1,19 @@
-[Category]
-
-[State]
-new = 
-assigned = 
-investigating = 
-scheduled = 
-testing = 
-closed = 
-
-[Resolution]
-fixed = 
-rejected = 
-duplicate = 
-cannot reproduce = 
-
-[Assigned-To]
-detlev = 
-
+[Category]
+
+[State]
+new = 
+assigned = 
+investigating = 
+scheduled = 
+testing = 
+closed = 
+
+[Resolution]
+fixed = 
+rejected = 
+duplicate = 
+cannot reproduce = 
+
+[Assigned-To]
+detlev = 
+
--- a/Plugins/PluginEricapi.py	Wed Jul 14 21:40:32 2010 +0200
+++ b/Plugins/PluginEricapi.py	Tue Jul 20 08:17:01 2010 +0200
@@ -21,6 +21,8 @@
 
 import Utilities
 
+from eric5config import getConfig
+
 # Start-Of-Header
 name = "Ericapi Plugin"
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
@@ -46,7 +48,7 @@
     """
     exe = 'eric5-api'
     if Utilities.isWindowsPlatform():
-        exe += '.bat'
+        exe = os.path.join(getConfig("bindir"), exe +'.bat')
     
     data = {
         "programEntry"      : True, 
--- a/Plugins/PluginEricdoc.py	Wed Jul 14 21:40:32 2010 +0200
+++ b/Plugins/PluginEricdoc.py	Tue Jul 20 08:17:01 2010 +0200
@@ -7,6 +7,8 @@
 Module implementing the Ericdoc plugin.
 """
 
+import os
+
 from PyQt4.QtCore import QObject, SIGNAL
 from PyQt4.QtGui import QDialog, QApplication
 
@@ -19,6 +21,8 @@
 
 import Utilities
 
+from eric5config import getConfig
+
 # Start-Of-Header
 name = "Ericdoc Plugin"
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
@@ -45,7 +49,7 @@
     """
     exe = 'eric5-doc'
     if Utilities.isWindowsPlatform():
-        exe += '.bat'
+        exe = os.path.join(getConfig("bindir"), exe +'.bat')
     
     data = {
         "programEntry"      : True, 
--- a/Preferences/ProgramsDialog.py	Wed Jul 14 21:40:32 2010 +0200
+++ b/Preferences/ProgramsDialog.py	Tue Jul 20 08:17:01 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