import subprocess
import sys
python_script = sys.argv.pop(0)
call = [sys.excecutable] + python_script + sys.argv
result = subprocess.check_call(call)
Is there an easy way to make a script to mimic the functionality of the python executable exactly, for use in a PyInstaller deploy?