larray-project / larray-editor

Graphical User Interface for LArray
GNU General Public License v3.0
2 stars 2 forks source link

update link in Windows menu fails in (non base) environments #211

Closed gdementen closed 3 years ago

gdementen commented 3 years ago

unless "conda" is in the Path.

Because the "cwp" script more or less activates the target environment (puts stuff in the path) but conda is in the base environment.

The solution would be to change the simple "conda" command to something with a path (something like ${ROOT_PREFIX}/Scripts/conda) or use the conda-script.py as a Python script?

gdementen commented 3 years ago

For future reference, given the scarce documentation at https://github.com/conda/menuinst/wiki/Menu-Shortcut-Config-Structure , I read the source directly at:

https://github.com/conda/menuinst/blob/master/menuinst/win32.py https://github.com/conda/menuinst/blob/master/tests/test_menu_creation.py