Jump to content

Not many DOS batch files communities out there


G+_Rud Dog
 Share

Recommended Posts

Got it to work, in this case the python script was not found by the bat file script so by putting the bat file in the same dir it was able to run on the file in question and create executable. What made it  possible to see the error after my batch file failed was the "pause" placed inside the batch file. The addition of the pause kept the DOS prompt window open after it ran.This gave me time to see the error,  it could not find the "py" file it was looking for.

 

So here is the line in my bat file. Place bat file in the same location as the file you are trying to create executable.

 

C:\Python34\python.exe C:\Python34\Scripts\setup.py py2exe

Link to comment
Share on other sites

Guys, what I posted was a first time test later found removing the path from internals of batch file was not a problem but being overly cautious.

 

After entering this:

python.exe setup.py py2exe

  

The batch file still worked. Yes the paths are our friends but desperation called for desperate measures so the paths were included.

Now for the answer to the problem in case someone else had this problem and has the proper paths in the PATH Var, the batch file has to be in the same directory as the script you are trying to run it on.

 

setup.py and setup.bat(what I named my bat file with these lines in it: python.exe setup.py py2exe) 

Works great now, love it when intended project works!

 

Thank you for your input.

Link to comment
Share on other sites

 Share

×
×
  • Create New...