I want to make a Python script - allow the call exe.py- which basically behaves exactly like the Python executable (python.exe, /usr/bin/pythonetc.). I.e:
python exe.py launches a shellpython exe.py script.py runs a python scriptpython exe.py script.py a b c runs a python script using argspython exe.py -c ... runs the commandpython exe.py -m ... starts the modulepython exe.py -h prints a help screen- etc...
I could, of course, reimplement all of this, but I wonder if there is a programmatic way to just go through the command line and all the arguments and behave the same as python.exe? In much the same way you can launch an interactive shell without re-implementing the entire interactive shell.
XY : , , , . Python, . PyInstaller Python , , Python script, , python, .
, Python, .