mirror of
https://github.com/xxh/xxh
synced 2024-11-24 04:43:09 +00:00
0.4.0 wip
This commit is contained in:
parent
6bea2bc834
commit
6532671bf7
1 changed files with 5 additions and 2 deletions
|
@ -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))
|
||||
sys.path = sys_path
|
||||
cd
|
Loading…
Reference in a new issue