sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29212
Re: [Question #257256]: NameError (!! WHILE IMPORTING!!)
Question #257256 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/257256
Status: Open => Answered
Tak Eda proposed the following answer:
Put "import sys" before the "from sikuli import *" line.
Also, a better code to handle the import will be:
import sys
import os
_path = r'C:\SikuliScripts\HTMLTestRunner.sikuli'
if os.path.exists(_path):
sys.path.append(_path)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.