From 6532671bf7a44f7d6323bd74ff154c497a3424c2 Mon Sep 17 00:00:00 2001 From: anki-code Date: Wed, 4 Mar 2020 11:59:59 +0300 Subject: [PATCH] 0.4.0 wip --- xonssh_xxh/xonshrc.xsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xonssh_xxh/xonshrc.xsh b/xonssh_xxh/xonshrc.xsh index 889fdac..bad9d13 100644 --- a/xonssh_xxh/xonshrc.xsh +++ b/xonssh_xxh/xonshrc.xsh @@ -34,7 +34,10 @@ del _xxh_pip for plugin_path in sorted(($XXH_HOME / 'plugins').glob('*')): if (plugin_path / 'xonshrc.xsh').exists(): - sys.path.append(str(plugin_path)) + cd @(plugin_path) + sys_path = sys.path + sys.path = [str(plugin_path)] __import__('xonshrc') del sys.modules['xonshrc'] - sys.path.remove(str(plugin_path)) \ No newline at end of file + sys.path = sys_path +cd \ No newline at end of file