← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #190179]: Using Variables via Settings, refresh?

 

Question #190179 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/190179

    Status: Open => Needs information

RaiMan requested more information:
--- I am then using this variable each time the Main script is invoked in the other two Sikuli Scripts.
not really clear, what that means: the Main script is invoked in the other two ???

You say: Main basically Imports the other two files.

Based on this, I guess you have something like this:

# main.sikuli
Settings.myClientName = "Sikuli " + time.strftime("%Y/%m/%d - %H:%M.%S")
import CreateAClient
reload(CreateAClient)
import NBWrapUp
reload(NBWrapUp)
# surely there is more code, but thats the essence

# CreateAClient.sikuli
from sikuli import *
print Settings.myClientName

# NBWrapUp.sikuli
from sikuli import *
print Settings.myClientName

If this is true, then every time, the main script is rerun,
Settings.myClientName is set to the actual time value and the subs are
run one after the other.

So what is your problem?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.