janet-lang / jpm

Janet Project Manager
MIT License
68 stars 22 forks source link

Support PREFIX env var #1

Closed sogaiu closed 3 years ago

sogaiu commented 3 years ago

How about support for the PREFIX environment variable?

bakpakin commented 3 years ago

I want to encourage actually using a hard-coded config rather than general environment variables like PREFIX. The default config is just that, a default. If you are installing somewhere besides /usr/local (which, btw, is the standard installation path for user installed software on linux), you just have an explicit config file without any detection in it.

I guess something like JANET_PREFIX would be ok.

sogaiu commented 3 years ago

I have found the /usr/local prefix approach to not be a great fit for the situation of testing multiple versions of things within one system.

I will modify things in this PR to use JANET_PREFIX.