Revision 362 org.gvsig.scripting.app/trunk/org.gvsig.scripting.app/org.gvsig.scripting.app.extension/src/main/resources/scripting/lib/console/console.py
console.py | ||
---|---|---|
17 | 17 |
import sys |
18 | 18 |
import traceback |
19 | 19 |
from code import InteractiveInterpreter |
20 |
#from org.python.util import InteractiveConsole
|
|
21 |
InteractiveConsole=sys.gvSIG.classForName("org.python.util.InteractiveConsole") |
|
20 |
from org.python.util import InteractiveConsole |
|
21 |
#InteractiveConsole=sys.gvSIG.classForName("org.python.util.InteractiveConsole")
|
|
22 | 22 |
|
23 | 23 |
__author__ = "Don Coleman <dcoleman@chariotsolutions.com>" |
24 | 24 |
__cvsid__ = "$Id: console.py 5910 2006-06-20 10:03:31Z jmvivo $" |
... | ... | |
43 | 43 |
|
44 | 44 |
# command buffer |
45 | 45 |
self.buffer = [] |
46 |
self.locals = {"gvSIG":sys.gvSIG} |
|
46 |
self.locals = {} |
|
47 |
#self.locals = {"gvSIG":sys.gvSIG} |
|
47 | 48 |
|
48 | 49 |
self.interp = Interpreter(self, self.locals) |
49 | 50 |
sys.stdout = StdOutRedirector(self) |
Also available in: Unified diff