When you freeze an application with PyInstaller, it doesn't have all of the 
interpreter - just the modules you use. What you should do is alter your main 
script to take command line arguments, and then pass an argument that makes it 
do whatever you would have called the interpreter to execute. In other words 
call sys.executable to produce a clone of your application, which runs whatever 
other command instead of your normal application. If you're wanting to run any 
Python commands, that kinda defeats the purpose of freezing. You might as well 
just install the whole interpreter and provide your code as a script or 
something.

For running your command line args, you might want to look at the runpy, and 
code modules - these implement -m execution and a REPL respectively.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/fa9897e0-ce5d-47a6-810e-4d5b800f6d5a%40googlegroups.com.

Reply via email to