A little improvement to the Python executable determination routine.

Tue, 26 Mar 2013 16:50:20 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Mar 2013 16:50:20 +0100
changeset 10
77b4a30cdbbf
parent 9
8fe581309106
child 11
5eda53fad138

A little improvement to the Python executable determination routine.

ProjectDjango/Project.py file | annotate | diff | comparison | revisions
--- a/ProjectDjango/Project.py	Tue Mar 26 16:37:01 2013 +0100
+++ b/ProjectDjango/Project.py	Tue Mar 26 16:50:20 2013 +0100
@@ -903,6 +903,8 @@
                     python = os.path.join(virtualEnv, python)
             else:
                 python = os.path.join(virtualEnv, "bin", python)
+                if not os.path.exists(python):
+                    python = python[:-1]    # omit the version character
         
         return python
     

eric ide

mercurial