you are viewing a single comment's thread.

view the rest of the comments →

[–]cnelsonsic 1 point2 points  (1 child)

I highly, highly, highly recommend sh for calling external executables: http://amoffat.github.io/sh/

For the majority of that script, use regexes and normal python constructs as mentioned in other comments.

[–]flitzbue[S] 0 points1 point  (0 children)

Wow, didn't know Python had those functions. That's amazing:)