From: Fredrik C. <fre...@gm...> - 2007-11-20 11:52:07
|
Hi, I've created a Python application and distribute it using py2exe. As I want users to be able to write custom scripts using it's libs without having to install Python I've created a small script (that I create an exe file for) that can run scripts using the freezed Python environment. 8<------ import imp,sys pyscript = sys.argv.pop(1) imp.load_source( '__main__',pyscript ) ----->8 It works quite well but I would like it behave exactly as the normal python interpreter so it allows interactive console, respect arguments passed to give the same error messages etc. Does anyone know how I can do this with py2exe? Thanks for your great work! Regards, Fredrik |