Skip to content

Commit d6c1383

Browse files
committed
fixing stash merge issue
1 parent e0749e6 commit d6c1383

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

tmuxp/cli.py

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -392,46 +392,7 @@ def scan_config(config, config_dir=None):
392392
return config
393393

394394

395-
<<<<<<< Updated upstream
396395
def _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

0 commit comments

Comments
 (0)