user-cont / conu

conu - python API for your containers
http://conu.readthedocs.io/en/latest/
MIT License
165 stars 33 forks source link

WIP: Update run_cmd with cwd and add contextmanager #367

Closed phracek closed 5 years ago

phracek commented 5 years ago

Signed-off-by: Petr "Stone" Hracek phracek@redhat.com

This pull request adds support cwd into run_cmd and context manager like it is used in packit It is first action for fixing TODO https://github.com/packit-service/packit/blob/master/packit/utils.py#L60

cwd as contextmanager will be removed in packit and used as from conu.utils import cwd