sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06259
Re: [Question #174743]: How to parameterize data in sikuli?
Question #174743 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/174743
RaiMan proposed the following answer:
--- you run your script using (the most simple solution):
Sikuli-IDE.bat -r your-script.sikuli --args "c:\folder\subfolder"
--- in your script
import os
fname = "some-file.txt"
if len(sys.argv) < 1: print "parameter error"; exit(1)
fnameFull = os.path.join(sys.argv[1], fname)
print fnameFull
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.