os.system(cmd) isn't working
tim.golden at viacom-outdoor.co.uk
Thu Jun 23 14:32:08 CEST 2005
[Michael P. Soulier]
| On 23/06/05 Tim Golden said:
| > This is only half an answer, but I personally find faffing
| > about with the double-quote / double-backslash stuff between
| > Python and Windows a pain in the neck, so where I can I avoid it.
| Indeed. I believe this is why Python has os.sep.
Well, true, but if you were trying to enter a
particular file path as the OP was (c:\program files\ etc.)
would you really want to have "c:" + os.sep + "program files"...
or os.path.join ("c:", "program files"...)? And where do the
double-quotes go etc?
I'm not saying all these things aren't possible; my only
point is that rather than try to remember / work it out,
I generally try to avoid the issue.
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
More information about the Python-list