'Python pyinstaller create exe with fixed args

How can i set fixed args when converting py to exe? I'm using PyInstaller library on python. For example when Flask page requested i'll call PyInstaller for create exe. I tried this but PyInstaller detecting args as file path.

python -m PyInstaller --noconfirm --onefile --console --name "TestEXE" --clean  "C:/Users/harms/Desktop/Python/main.py <arg1> <arg2>"

if you think i can't do this with this library please suggest library like pyinstaller in python.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source