gforsyth / xonda

DEPRECATED: (previously a thin wrapper around conda for xonsh)
BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

Problem activating env from .autoxsh #46

Closed meatballs closed 5 years ago

meatballs commented 5 years ago

If I activate an environment using

conda activate my_env

everything works as expected. However if I create a `.autoxsh' file using

echo "conda activate my_env" > .autoxsh

and then change into that directory, I get the conda usage message and the env is not activated:

usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: '<path>/.autoxsh' (choose from 'clean', 'config', 'create', 'help', 'info', 'init', 'install', 'list', 'package', 'remove', 'uninstall', 'run', 'search', 'update', 'upgrade')

(If this isn't a xonda issue and belongs somewhere else, just shout and I'll raised wherever it needs to be)!

gforsyth commented 5 years ago

I'm not super familiar with the autoxsh internals, but that looks like an issue on that end since it's passing <path>/.autoxsh to conda

meatballs commented 5 years ago

I shall have a poke around in there!