Thursday, April 21, 2016

Import Python Script to SikuliX

When we need to import python script into sikulix workspace, here is one of the way to do:

1. Import sys
2. Append the path to the script into sys.path
3. Import your python script

Here is an example

import sys

sys.path.append("/Users/arwankhoiruddin/Downloads/python_packages/HTMLTestRunner")

import HTMLTestRunner

However, it has some limitations. You should refer to this document: https://answers.launchpad.net/sikuli/+faq/1114

No comments: