← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #685506]: how to use exe(use pyinstaller output)in sikuli

 

Question #685506 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/685506

    Status: Needs information => Open

wu gave more information on the question:
simple: i have a test.py the content is  open a 123.txt and use the 123.txt content to do something。
like:
     a = open('123.txt')
     for i in a:
         print(i)
and i use pyinstaller to package the test.py to test.exe。

then my sikuli code will use  App.open('test.exe') or
os.system('test.exe')

but will tell me can't not find the 123.txt but the 123.txt will put in
the folder with test.exe

begin i guess maybe is the test.exe path error so i change write use 【a
= open(sys.path[0]+'\123.txt'】the sys.path[0] will print now

the exe path and can find the 123.txt. but use in sikuli will jump to
the temp folder, so i have no idea to solve the question

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.