ImagePath: find: not there when importing unittest TestCase into main script
I have a name.sikuli script which is as follows:
class TestA(unittest.
def testA(self):
When i run it with
if __name__ == '__main__':
suite = unittest.
unittest.
it works fine. Then I tried to create a main script and put name.sikuli into main.sikuli. Code of main.sikuli:
import os
myPath = os.path.
if not myPath in sys.path: sys.path.
import name
reload(name)
from name import *
suite = unittest.
unittest.
When I tried to run main.sikuli it gave
[error] ImagePath: find: not there: image.png
I tried to use functions from another script (which is not unittest class, just functions) in name.sikuli. The image from this script was found both times, when running name.sikuli and main.sikuli. Is there a problem when importing sikuli script that is a class?
P.S. using SikuliX IDE 2.0.0
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Aleks Kozaev for more information if necessary.