Pre-calculate the gadgetDir, as this is likely used every time
This commit is contained in:
parent
a4abe511c7
commit
9f6caadc40
1 changed files with 1 additions and 2 deletions
|
|
@ -181,12 +181,11 @@ class DebugSession( object ):
|
||||||
'dollar': '$', # HACK. Hote '$$' also works.
|
'dollar': '$', # HACK. Hote '$$' also works.
|
||||||
'workspaceRoot': self._workspace_root,
|
'workspaceRoot': self._workspace_root,
|
||||||
'workspaceFolder': self._workspace_root,
|
'workspaceFolder': self._workspace_root,
|
||||||
|
'gadgetDir': install.GetGadgetDir( VIMSPECTOR_HOME, install.GetOS() ),
|
||||||
'file': current_file,
|
'file': current_file,
|
||||||
}
|
}
|
||||||
|
|
||||||
calculus = {
|
calculus = {
|
||||||
'gadgetDir': lambda: install.GetGadgetDir( VIMSPECTOR_HOME,
|
|
||||||
install.GetOS() ),
|
|
||||||
'relativeFile': lambda: relpath( current_file,
|
'relativeFile': lambda: relpath( current_file,
|
||||||
self._workspace_root ),
|
self._workspace_root ),
|
||||||
'fileBasename': lambda: os.path.basename( current_file ),
|
'fileBasename': lambda: os.path.basename( current_file ),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue