Message10543
This demo is absolutely ancient code - JPython?!!! - and uses some arguable bad coding practices such as stopping threads and what appears to be an unnecessary late import of sys. The underlying problem is that it needs to now construct an interactive console much like org.python.util.jython. So something like this code snippet:
// Now create an interpreter
if (!opts.interactive) {
// Not (really) interactive, so do not use console prompts
systemState.ps1 = systemState.ps2 = Py.EmptyString;
}
InteractiveConsole interp = new InteractiveConsole();
At this point, sys.ps1 and sys.ps2 are defined. |
|
Date |
User |
Action |
Args |
2015-12-17 04:12:38 | zyasoft | set | messageid: <1450325558.3.0.931322344141.issue2373@psf.upfronthosting.co.za> |
2015-12-17 04:12:38 | zyasoft | set | recipients:
+ zyasoft, saltnlight5 |
2015-12-17 04:12:38 | zyasoft | link | issue2373 messages |
2015-12-17 04:12:37 | zyasoft | create | |
|