os.spawnl problem under windows...

Max nospam at nospam.nospam
Sun May 12 15:49:50 EDT 2002


"Alex Martelli" <aleax at aleax.it> ha scritto nel messaggio
news:V2vD8.33126$CN3.1136941 at news2.tin.it...
> Max wrote:
>         ...
> >>>>os.spawnl(os.P_WAIT, 'c:\windows\notepad.exe',
'c:\windows\notepad.exe')
>
> As these are plain strings, each \n means a single newline characters.
>
> Double up every backslash or use raw string literals
> r'c:\windows\notepad.exe' in which backslash-escapes aren't expanded.
>
> In most cases you can also use normal / slashes instead of back \ ones,
> but I don't recall if os.spawnl is among those 'most cases'.
>
>
Thanks.__VERY__ much!!! :)
However (i tried...) the normal / slash works even with spawnl, i suppose i
will start using slashes instead of back-slashes... :)





More information about the Python-list mailing list