|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello Everybody,
I am trying to generate .exe from .py , which read from file. A file is supply as argumanet to .exe .What should i used in "Setup.py"file so, generated .exe file will accept input argument? I have very less experince in writing setup.py file. Please anybody can provide any example or helpful link. Thanks lot. DevHims |
|
#2
|
||||
|
||||
|
I suggest you write your python code first - get it debugged and then try to use py2exe
![]() python myprog.py textfile.txt Is the same as doing: myprog.exe textfile.txt after py2exe has compiled it. Have a look at the sys (sys.argv), getopt and optparse modules for ideas on reading the command line. py2exe has nothing to do with reading the command line (except to read parameters for intself). You don't need py2exe until you are ready to give your program to someone who does not have python installed. Grim ![]()
__________________
*** Experimental Python Markup CGI V2 *** |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > what option to use in "setup.py" file so, generated .exe reads command line input? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|