0

I want to know how to prohibit multiple execution using pyinstaller

the command I use to have the exe is

pyinstaller -w -F --hidden-import "babel.numbers" --icon=images/look.ico App.py

Know this works fine but when executing multiple times many instance of the same application will start at the same time.

I want to have one instance of the application even run the exe multiple times

Ali
  • 687
  • 8
  • 27
  • As far as I understood your problem is related to [this issue](https://github.com/pyinstaller/pyinstaller/issues/2483). They suggest to remove the -F command to run the .exe only in one instance. I don't know if it works with multiple execution. – Maeaex1 Aug 20 '19 at 08:54
  • @Maeaex1 this didn't help even after removing -F – Ali Aug 20 '19 at 09:32
  • `-F` is just a flag how the application is built. This has no influence on running multiple instances (or not). – Maurice Meyer Aug 20 '19 at 09:56

0 Answers0