getWorkspace¶
- maelzel.core.workspace.getWorkspace()[source]¶
Get the active workspace
The active Workspace can be accessed via
Workspace.active
. This function is simply a shortcut, placed here for visibility- Return type:
Example
Create a new Workspace based on the active Workspace and activate it
>>> from maelzel.core import * >>> w = getWorkspace().clone(active=True)
The active workspace can always be accessed directly:
>>> w = Workspace.active >>> w is getWorkspace() True