New question #240852 on Sikuli:
https://answers.launchpad.net/sikuli/+question/240852
In my code, there is one line:
print os.path.dirname(__file__)
It works fine in my Eclipse.
-
But when I use it in SIkuli, SIkuli tells me:
[error] NameError ( name '__file_
Question #240852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240852
Summary changed to:
It seems that __file__ can't work in Sikuli --- but only in the main script
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer cont
Question #240852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240852
Status: Open => Answered
RaiMan proposed the following answer:
*** definition of __file__
... contains the absolute file name of the file (.py) containing the statement
that references __file__
*** Sik
Question #240852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240852
Assignee: None => RaiMan
Summary changed to:
It seems that __file__ can't work in Sikuli --- but only in the main script -
use getBundlePath()
--
You received this question notification because you ar
4 matches
Mail list logo