Short version:
How do I use PyInstaller from within a Python script, instead of from the terminal?
What would I need to write inside a Python script to get the equivalent of writing this in the terminal:
>python -m PyInstaller --noconsole --name WorkLogger ../WorkLogger/main.py
Long version:
I'm using a library that requires using PyInstaller to distribute an executable. But I have to run PyInstaller once, then change the spec files, then run the spec file through PyInstaller.
So in the terminal I would've done this:
>python -m PyInstaller --noconsole --name WorkLogger ../WorkLogger/main.py
After this is done running, I manually change the spec file. Then I run:
>python -m PyInstaller WorkLogger.spec
I've written a script that does the manual labor for me, by running
>change_spec.py
But I ultimately want to do all of this in one Python script. I want to be able to type something like this:
>distribute_python_project.py ./Worklogger
This means my Python script would need to look something like this:
#Psuedocode:
#python -m PyInstaller --noconsole --name WorkLogger ../WorkLogger/main.py
#Code from change_spec.py
#python -m PyInstaller WorkLogger.spec
But I can't figure out how I use PyInstaller from a python script, instead of from the terminal. Is this possible? (The library I use is Kivy, for those interested).