teuben / nemo

a Stellar Dynamics Toolbox (Not Everybody Must Observe)
https://astronemo.readthedocs.io
GNU General Public License v2.0
56 stars 40 forks source link

run from anywhere support #99

Closed ParkerTewell closed 1 year ago

teuben commented 2 years ago

The code goes "up" a directory while "nemo" is not found. This could easily fail if somebody has $NEMO stored in some name which could even be "foobar" (I often have nemo_something for testing). It would seem that os.environ['NEMO'] is the place to go?

ParkerTewell commented 2 years ago

Can you see if this new method using OLDPWD works for you?

teuben commented 1 year ago

it works!