nteract / jupyter-paths

:city_sunrise: Pure JavaScript implementation of jupyter --paths --json
BSD 3-Clause "New" or "Revised" License
9 stars 11 forks source link

catch failure to get sys.path from python #20

Closed minrk closed 8 years ago

minrk commented 8 years ago

and log it

closes #16

alternately, with the new guessSysPrefix, sys-prefix-promise can probably be dropped altogether.

rgbkrk commented 8 years ago

Thanks!

Dont we want to keep the sys prefix for detecting conda envs? This doesn't just get used by nteract/nteract - if a user launches Atom from the CLI while in a conda environment (or virtual environment) then that environment is the sys.prefix

minrk commented 8 years ago

The guess used when sysPrefix is false will work in any env, I think. It's only the non-env weird cases where sysPrefix will differ from the cheap guess.