File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -392,46 +392,7 @@ def scan_config(config, config_dir=None):
392392 return config
393393
394394
395- < << << << Updated upstream
396395def _reattach (session ):
397- == == == =
398- def load_plugins (sconf ):
399- """
400- Load and return plugins in config
401- """
402- plugins = []
403- if 'plugins' in sconf :
404- for plugin in sconf ['plugins' ]:
405- try :
406- module_name = plugin .split ('.' )
407- module_name = '.' .join (module_name [:- 1 ])
408- plugin_name = plugin .split ('.' )[- 1 ]
409- plugin = getattr (importlib .import_module (module_name ), plugin_name )
410- plugins .append (plugin ())
411- except exc .TmuxpPluginException as error :
412- if not click .confirm (
413- '%sSkip loading %s?'
414- % (click .style (str (error ), fg = 'yellow' ), plugin_name ),
415- default = True ,
416- ):
417- tmuxp_echo (
418- click .style ('[Not Skipping] ' , fg = 'yellow' )
419- + 'Plugin versions constraint not met. Exiting...'
420- )
421- sys .exit (1 )
422- except Exception as error :
423- tmuxp_echo (
424- click .style ('[Plugin Error] ' , fg = 'red' )
425- + "Couldn\' t load {0}\n " .format (plugin )
426- + click .style ('{0}' .format (error ), fg = 'yellow' )
427- )
428- sys .exit (1 )
429-
430- return plugins
431-
432-
433- def _reattach (builder ):
434- > >> >> >> Stashed changes
435396 """
436397 Reattach session (depending on env being inside tmux already or not)
437398
You can’t perform that action at this time.
0 commit comments