2020-02-24 21:09:17 +00:00
|
|
|
import sys
|
2020-02-08 21:57:47 +00:00
|
|
|
|
2020-02-17 08:36:17 +00:00
|
|
|
$UPDATE_OS_ENVIRON=True
|
2020-02-27 22:27:28 +00:00
|
|
|
del $LS_COLORS # https://github.com/xonsh/xonsh/issues/3055
|
2020-02-24 21:09:17 +00:00
|
|
|
$XXH_HOME = pf"{__file__}".absolute().parent
|
|
|
|
$PIP_TARGET = $XXH_HOME / 'pip'
|
2019-11-03 13:06:26 +00:00
|
|
|
$PYTHONPATH = $PIP_TARGET
|
2020-02-24 21:09:17 +00:00
|
|
|
$PATH = [ p"$PYTHONHOME" / 'bin', $XXH_HOME ] + $PATH
|
|
|
|
sys.path.append(str($PIP_TARGET))
|
|
|
|
sys.path.remove('') if '' in sys.path else None
|
2020-02-23 08:49:42 +00:00
|
|
|
aliases['pip'] = ['python','-m','pip']
|
|
|
|
aliases['xpip'] = aliases['pip']
|
2019-11-03 13:06:26 +00:00
|
|
|
|
2020-02-24 21:09:17 +00:00
|
|
|
for plugin_path in sorted(($XXH_HOME / 'plugins').glob('*')):
|
|
|
|
if (plugin_path / 'xonshrc.xsh').exists():
|
|
|
|
sys.path.append(str(plugin_path))
|
2020-02-16 14:00:51 +00:00
|
|
|
__import__('xonshrc')
|
|
|
|
del sys.modules['xonshrc']
|
2020-02-24 21:09:17 +00:00
|
|
|
sys.path.remove(str(plugin_path))
|