3 ms·
There are a couple of modules that do this kind of thing but Plumbum looks interesting, particularly http://plumbum.readthedocs.org/en/latest/local_commands.ht
by voltagex_ 13y ago
There are a couple of modules that do this kind of thing but Plumbum looks interesting, particularly
http://plumbum.readthedocs.org/en/latest/local_commands.html#import-hack http://plumbum.readthedocs.org/en/latest/local_commands.html...
>from plumbum.cmd import cat
>>cat('tmp.txt') #invokes cat tmp.txt on the system