Closed worldmind closed 4 years ago
Yes, known problem. See here: https://github.com/74th/xonsh-direnv/issues/2
def __direnv():
p = subprocess.Popen(
'direnv export json'.split(),
stdout=subprocess.PIPE,
env=__xonsh__.env.detype()
)
r, _ = p.communicate()
if len(r) > 0:
for k, v in json.loads(r).items():
if v is None:
del (__xonsh__.env[k])
else:
__xonsh__.env[k] = v
Best fix for now...
https://github.com/74th/xonsh-direnv/pull/7 should close this issue.
Now works fine, thanks! It's great!
@74th, if you give me rights to this repo I could help manage it and e.g. close this issue.
Hi, thanks for your project - it is that I need. But a couple of questions:
Ubuntu 18.04 with python3.7, direnv from snap, xonsh from pip (fresh install)