[Pydev-cvs] org.python.pydev/PySrc interpreterInfo.py,1.24,1.25
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-06-15 01:11:03
|
Update of /cvsroot/pydev/org.python.pydev/PySrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29788/PySrc Modified Files: interpreterInfo.py Log Message: Cygwin sys.executable not correct. http://sourceforge.net/tracker/index.php?func=detail&aid=1986733&group_id=85796&atid=577329 Index: interpreterInfo.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/interpreterInfo.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** interpreterInfo.py 12 Apr 2008 13:01:26 -0000 1.24 --- interpreterInfo.py 15 Jun 2008 01:11:09 -0000 1.25 *************** *** 33,36 **** --- 33,37 ---- ctypes.cdll.cygwin1.cygwin_conv_to_win32_path(path, retval) #@UndefinedVariable return retval.value + else: def nativePath(path): *************** *** 54,57 **** --- 55,62 ---- except: executable = sys.executable + + if sys.platform == "cygwin" and not executable.endswith('.exe'): + executable += '.exe' + try: |