Добавил возможность запускать sh комманду из скрипта

This commit is contained in:
rzaitov
2013-10-30 18:23:49 +04:00
parent bdd8b74fba
commit 0174a20c05
8 changed files with 97 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
from subprocess import call
class ShCommand:
def __init__(self, commandText):
assert commandText is not None
self.__commandText = commandText
def execute(self):
call(self.__commandText, shell=True)