Monday, 6 April 2020

os.system vs. line continuation on Windows :\

(note to self)

So at least in the Windows style (and of course actually on Windows), Python's os.system does not much enjoy the there accepted ^ symbols that otherwise are meant to mark lines of a batch file that would continue in the next, even if these are used for the purpose correctly -- and they otherwise work fine even if pasted into a command line shell.

Could be that it was the cr+lf's that halted the parsing at the end of the first line? Maybe someone will find out and publish.

For me, just one more lesson learnt the hard way ... :)

No comments:

Post a Comment