Matthias Vogelgesang 3b5cc094c9 Add name argument when creating workspace | il y a 9 ans | |
---|---|---|
.gitignore | il y a 9 ans | |
README.md | il y a 9 ans | |
concert_workspacecreator.py | il y a 9 ans | |
setup.py | il y a 9 ans |
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)