[Pydev-cvs] org.python.pydev.jython/src/org/python/pydev/jython JythonPlugin.java,1.3,1.4
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-03-20 19:38:30
|
Update of /cvsroot/pydev/org.python.pydev.jython/src/org/python/pydev/jython In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12920/src/org/python/pydev/jython Modified Files: JythonPlugin.java Log Message: Index: JythonPlugin.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.jython/src/org/python/pydev/jython/JythonPlugin.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JythonPlugin.java 20 Mar 2006 17:02:50 -0000 1.3 --- JythonPlugin.java 20 Mar 2006 19:38:12 -0000 1.4 *************** *** 255,259 **** String path = REF.getFileAbsolutePath(fileToExec); String loadFile = "" + ! "f = open('"+fileToExec+"')\n" + "try: \n" + " toExec = f.read() \n" + --- 255,259 ---- String path = REF.getFileAbsolutePath(fileToExec); String loadFile = "" + ! "f = open(r'%s') \n" + "try: \n" + " toExec = f.read() \n" + *************** *** 261,266 **** " f.close() \n" + ""; ! interpreter.exec(loadFile); ! String exec = StringUtils.format("code = compile(toExec, '%s', 'exec')", path); interpreter.exec(exec); } --- 261,268 ---- " f.close() \n" + ""; ! String toExec = StringUtils.format(loadFile, path); ! REF.writeStrToFile("Will exec:>>"+toExec+"<<", "c:/temp/test.txt"); ! interpreter.exec(toExec); ! String exec = StringUtils.format("code = compile(toExec, r'%s', 'exec')", path); interpreter.exec(exec); } |