Skip to content

Commit 01a6550

Browse files
committed
make session attribute/instance accessible via WorkspaceBuilder class
1 parent 9d9cd89 commit 01a6550

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Here you can find the recent changes to tmuxp.
1919
detach it.
2020
- [cli] tmux 1.8 ``set-option`` / ``set-window-options`` command
2121
``target-window`` fix.
22+
- [internal] :class:`WorkspaceBuilder` now has ``.session`` attribute accessible
23+
publicly.
2224

2325
2013-10-28
2426
----------

tmuxp/workspacebuilder.py

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def build(self, session=None):
122122

123123
assert(self.sconf['session_name'] == session.get('session_name'))
124124

125+
self.session = session
126+
125127
assert(isinstance(session, Session))
126128
if 'options' in self.sconf and isinstance(self.sconf['options'], dict):
127129
for key, val in self.sconf['options'].items():

0 commit comments

Comments
 (0)