def __init__(self, path): assert path is not None self.path = path cmdText = "mkdir -p '{0}'".format(self.path) ShTextCommand.__init__(self, cmdText)
from commands.ShTextCommand import ShTextCommand calendarCommand = ShTextCommand("cal 12 2013") calendarCommand.execute() touchCommand = ShTextCommand("touch ../tmp.txt") touchCommand.execute()