← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236120]: How can I import variables used by my script from external files?

 

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

    Status: Answered => Solved

Unuldinei confirmed that the question is solved:
Life saver!

Here is my code now:

import os
config_files_src = r"C:\\SomeFolder\\"
for n in range (10):
    execfile(os.path.join(config_files_src + str(n),"config.py"))
    popup(str(variable1))

... and it works! Thank you

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