sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58600
Re: [Question #704189]: NameError: name 'use' is not defined
Question #704189 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/704189
Status: Open => Answered
RaiMan proposed the following answer:
again the typo
from sikuli import #
instead of
from sikuli import *
you should use copy&paste to put code here.
how to import Python stuff in SikuliX scripts look here:
https://sikulix-2014.readthedocs.io/en/latest/scenarios.html#access-python-packages-from-sikulix-scripts-run-by-sikulix-gui-or-commandline
Supposing you have got a Ryancode.py or even a Python module called
Ryancode, than this is what you have to deal with according to the docs.
Another general option is to manipulate the Pythonpath, so it contains
the location, where you have your Ryancode stuff.
All this is basic Python knowledge by the way.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.