Re: [Sikuli-driver] [Question #240852]: It seems that __file__ can't work in Sikuli --- but only in the main script

2013-12-16 Thread RaiMan
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

Re: [Sikuli-driver] [Question #240852]: It seems that __file__ can't work in Sikuli --- but only in the main script

2013-12-16 Thread RaiMan
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__ ***

Re: [Sikuli-driver] [Question #240852]: It seems that __file__ can't work in Sikuli --- but only in the main script - use getBundlePath()

2013-12-16 Thread RaiMan
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

[Sikuli-driver] [Question #240852]: It seems that __file__ can't work in Sikuli

2013-12-15 Thread Parn Yin
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