sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58736
Re: [Question #702998]: script that runs from IDE but not from Commandline
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998
Description changed to:
Hello,
I had a script that was running ok if launched from the IDe but if, after generating runnable jar, launching it from commandline was failing.
The script is using OCR and the tessedit_char_blacklist that contains some char that I don't want to be found, like "£".
I cut away anything that worked and I got this minimal script that exhibits the problem:
#!/usr/bin/python
# -*- coding: utf-8 -*-
popup("£")
When launched from the IDE the popup shows "£", but the executable generated jar does not contain the script class and so it doesn't works.
i.e. If the pop-up contains something like "x" the executable jar contains these folder and files:
META-INF\
org\
__main__$py.class
__run__$py.class
TestNoCmd$py.class
and works if launched from commandline.
If the popup contains the "£" char the TestNoCmd$py.class file disappears from the jar and with the same commandline it doesn't works.
.... deleted
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.