How does Sikuli manage script's variables internally, do they 'propagate' between scripts? when are they reset?

Asked by eduardobedoya

How does Sikuli manage script's variables internally??
what happens if I have several script files defined as functions are called by a 'main' script using hotkeys, do the script's variables 'propagate' between scripts? when are they reset? what is the syntax to manually reset a variable?

Thanks Advanced.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

This all is Python language and usage.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#2

you should work through some Python tutorial, that talks about functions, modules and classes

Revision history for this message
eduardobedoya (gonnabdh) said :
#3

Thanks RaiMan, that solved my question.

Revision history for this message
eduardobedoya (gonnabdh) said :
#5

So far I only know about variables, list, functions and classes.
But Im not quite sure if variables propagate between scripts, either if it was exactly the same in Sikuli.
Ill will check it out.
Thanks RaiMan
BTW: Im still dealing with https://answers.launchpad.net/sikuli/+question/265776 finding a way to apply that join python regex, I just can't google it right xD