mirror of
https://github.com/kristoferssolo/School.git
synced 2025-10-21 20:10:38 +00:00
16 lines
322 B
Python
16 lines
322 B
Python
from .utils import do
|
|
from .utils import do_ex
|
|
from .utils import require_command
|
|
|
|
|
|
class Workdir:
|
|
def __init__(self, path):
|
|
require_command(self.COMMAND)
|
|
self.path = path
|
|
|
|
def do_ex(self, cmd):
|
|
return do_ex(cmd, cwd=self.path)
|
|
|
|
def do(self, cmd):
|
|
return do(cmd, cwd=self.path)
|