gforsyth / xonda

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

Conda alias doesn't display conda help #9

Closed mangecoeur closed 7 years ago

mangecoeur commented 7 years ago

Typing conda in bash with no arguments displays the conda help, with xonda I get:

$ conda

<module 'conda' from '~/miniconda3/lib/python3.6/site-packages/conda/__init__.py'
gforsyth commented 7 years ago

Thanks for reporting, @mangecoeur -- this is an interesting one... We import conda.install in order to create the necessary symlinks in new environments, and since xonsh is a python instance, we can't 'unload' that import to make it default to the help screen.

Ugly possibly solutions include monkeypatching the repr...

gforsyth commented 7 years ago

Well, that was simpler to fix than I thought -- just renamed the library on import and no more issue.

Fixed in 6e5710a40da2