View Single Post
Old Jul 17th, 2006, 6:30 PM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 936
Rep Power: 4 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
os.spawnl not working

I can run the following command in Windows command line successfully (assuming I have cd'ed to the proper directory:

> Reader.exe sig5C "C:\path\to\file.ext"

I am trying to run this command from a Python script. What I have so far is below. It launches the program but it quits before it processes the files. What am I doing wrong?

fp = r'C:\path\to\file.ext'
READER = r'C:\path\to\Reader.exe'

os.spawnl(os.P_WAIT, READER, READER, 'sig5C', '"%s"'%fp)
titaniumdecoy is offline   Reply With Quote