Matthias Vogelgesang 3b5cc094c9 Add name argument when creating workspace | 8 years ago | |
---|---|---|
.gitignore | 8 years ago | |
README.md | 8 years ago | |
concert_workspacecreator.py | 8 years ago | |
setup.py | 8 years ago |
Create a workspace with
from concert.third.workspacecreator import WorkspaceCreator
creator = WorkspaceCreator('foo/bar/baz')
workspace = creator.create()
print(workspace.path)
workspace.close()
or let close automatically with the context manager
with creator.create() as workspace:
print(workspace.path)