View Single Post
Old Jul 17th, 2006, 7:33 PM   #3
Sane
Banned
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,101
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Quote:
Originally Posted by Polyphemus_
in most other programming languages, a double backslash?
Well, unlike "most other programming languages", Python tries to avoid pointless things for the sake of making things more difficult. The "r" before the literal is there for a purpose, it isn't there for decoration. It voids the forward slash's use as an escape character.

print 'first line\nsecond line'
print r'\nsecond line'


@OP: The program may not like arguments with forward slashes in them. Try writing a python script that spits out the arguments (sys.argv). Then direct your code to open that script and see what the arguments are translating to within the script.

EDIT!!

Oh, I totally missed the first thing you said. About it working with those arguments! The third parameter in os.spawnl is where the arguments begin, yet you began 'sig5C' on the fourth parameter. Your code has three additional arguments, when your working example has only two. It seems that you've repeated "READER" excessively.

Last edited by Sane; Jul 17th, 2006 at 7:44 PM.
Sane is offline   Reply With Quote