Feb-28-2019, 10:26 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.
I am trying. Will let you know soonly.