Hi, I ve got a little problem: I am starting a python script within a python script. how do i pass the variables from one to the other? (i tried setting the request variables and getting the values by the python script but it didnt work) it looks like this: Python-Script: code of python script1 container.REQUEST.set('value', '123') <-------------I tried this but my script didnt get the value container.py2 <----Second python script should get values by the request variable code of python script1 Sebastian
Sebastian Sippl <sebastian@proceryon.at> writes:
I am starting a python script within a python script.
like, context.script2(parameters,...)?
how do i pass the variables from one to the other?
Use the parameter list.
container.py2 <----Second python script should get values by the request variable
This way, the script isn't even called - to call a method in python you have to use () after it, optionally filled with parameters. But you should be able to pass parameters around using the request, too. Just call your method in the context. jens
participants (2)
-
Jens Quade -
Sebastian Sippl