0

I am trying to create exe files while my program is runing

I am trying to do so by writing .py file with code in python and the use the package py2exe for creating the exe.

my problem is that I want the proceeder will be automaticly (without the user had to open cmd and run the setup file)

manually I know how to do it using py2exe

and if I could send cmd command from code it will be perfect!

any suggestions how to do so?

Cwerber
  • 3
  • 2

2 Answers2

0

Try using this: http://www.pyinstaller.org/

Should fit your use-case perfectly.

  • thank you! but didn't answer my need this package seems awesome but still require to use cmd, I read the whole manual and no remark to use in code for this.. – Cwerber Oct 01 '15 at 20:12
0

You could have a .bat file as described here: How can I run a program from a batch file without leaving the console open after the program start?

Put the commands you want in the bat file, and then run it using python like described here: Executing a subprocess fails

Community
  • 1
  • 1
  • Thank you it really solved my problem! this solution even fit for other problems I had , so really thank you(: – Cwerber Oct 02 '15 at 14:12