windows / unix path

greg greg at
Wed Oct 22 02:02:06 CEST 2008

Dennis Lee Bieber wrote:
> The command line is the only place the slash direction has any
> effect any way... Avoid os.system(), subprocess with shell = True, and
> forward is safe in any position.

I'm not sure that's quite true. On Windows, it's not the
shell that splits up the command line into arguments, it's
the program being run. So you need to avoid any kind of
exec or spawn operation, whether it goes through the shell
or not, unless you know the program being run isn't going
to interpret '/' as an option.


More information about the Python-list mailing list