[Pydev-cvs] org.python.pydev/src/org/python/pydev/ui/interpreters PythonInterpreterManager.java,1.1,
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-08-10 11:06:59
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/ui/interpreters In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6898/src/org/python/pydev/ui/interpreters Modified Files: PythonInterpreterManager.java Log Message: Index: PythonInterpreterManager.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/ui/interpreters/PythonInterpreterManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PythonInterpreterManager.java 9 Aug 2005 01:22:27 -0000 1.1 --- PythonInterpreterManager.java 10 Aug 2005 11:06:50 -0000 1.2 *************** *** 36,45 **** @Override public InterpreterInfo createInterpreterInfo(String executable, IProgressMonitor monitor) throws CoreException { - File script = PydevPlugin.getScriptWithinPySrc("interpreterInfo.py"); - boolean isJythonExecutable = isJythonExecutable(executable); if(isJythonExecutable){ throw new RuntimeException("A jar cannot be used in order to get the info for the python interpreter."); } String output = new SimplePythonRunner().runAndGetOutputWithInterpreter(executable, REF.getFileAbsolutePath(script), null, null, null, monitor); --- 36,55 ---- @Override public InterpreterInfo createInterpreterInfo(String executable, IProgressMonitor monitor) throws CoreException { boolean isJythonExecutable = isJythonExecutable(executable); if(isJythonExecutable){ throw new RuntimeException("A jar cannot be used in order to get the info for the python interpreter."); } + return doCreateInterpreter(executable, monitor); + } + + /** + * @param executable + * @param monitor + * @return + * @throws CoreException + */ + public static InterpreterInfo doCreateInterpreter(String executable, IProgressMonitor monitor) throws CoreException { + File script = PydevPlugin.getScriptWithinPySrc("interpreterInfo.py"); + String output = new SimplePythonRunner().runAndGetOutputWithInterpreter(executable, REF.getFileAbsolutePath(script), null, null, null, monitor); |