Answer the question
In order to leave comments, you need to log in
How to pack the program in EXE, if there is a webdriver?
I use the library pytinstaller
to pack programs into EXE. Now I have finished a program that uses Webdriver Selenium and also imports a json file into itself. After the EXE is made, it does not start, the drive and json are in the folder with the "exe". The console appears for a moment, I can’t even screenshot the error, tell me what it can be and maybe I should just use another library and how can I and is it possible at all to push the driver, browser and json file into one executable so that it works on others computers?
Answer the question
In order to leave comments, you need to log in
pay attention to the --add-data flag in pytinstaller: it will most likely solve your problem.
and the error can be read by running the executable through the console:
in Windows, right-click with the shift key pressed on any free space in the folder - open a powershell window here - and type in the command
./<имя экзешника>.exe
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question