Mar-04-2019, 03:29 AM
(Feb-27-2019, 08:49 PM)snippsat Wrote: A quick test,an you have to read the doc.
So can use spec file that get create every time run pyinstaller or add stuff with commands.
Adding binary from commands.
pyinstaller --onefile --console --add-binary chromedriver.exe;. duck_go.pyIn spec file it look like this'.'
or command line;.
means find file in folder you run from an add it to build.
binaries=[('chromedriver.exe', '.')],So when i build i have chromedriver.exe is same folder as .py file,and no path giver to chromedriver.exe in .py file.
browser = webdriver.Chrome(executable_path=r'chromedriver.exe')If move .exe to other Pc it work when in this test.
Okay. It appear that the chrome browser is launched, but I got the log error saying that
IndexError: ('list index out of range',)
This error doesn't appear in my local, but in my client computer.
Any idea tho?