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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to