sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37928
Re: [Question #293226]: run sikuli from command line
Question #293226 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/293226
Eugene S proposed the following answer:
Assume the below code is stored in file named "testFile.py"
import sys
path1 = sys.argv[1]
path2 = sys.argv[2]
def comparePaths(arg1, arg2):
return arg1 == arg2
def someFunction(arg1, arg2):
print comparePaths(arg1,arg2)
#some other logic...
someFunction(path1, path2)
Then from command line you can run it like this:
testFile.py "C:\temp" "C:\temp2"
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.