From: Ype K. <yk...@xs...> - 2001-07-23 18:31:43
|
Joern, I was going to remark that I could not import python files with upper case extension *.PY into 21a1 (see discussion on jython-dev) but then I saw a Javaism: <snip> > >After that and adding the code to set the python.path within the script, >too, I've started the AdventNet SimulationToolkit again. This message was >written to the log-file of the SimulationToolkit: > >Traceback (innermost last): > (no code object) at line 0 > File "D:\AdventNet\simulator\mibs\_behavior_scripts_\script.py", line 1 > Properties props = new Properties(); > ^ >SyntaxError: invalid syntax >Exception while executing the Python Script In python you cannot declare variables to be of a specific type. Also the new operator is not available, you simply call the class: import java props = java.util.Properties() or from java.util import Properties props = Properties() <snip> > >TIA for any help >Joern (At his wits end) It's fun at both ends, Ype |