mirror of
https://github.com/janet-lang/janet
synced 2025-02-03 02:39:09 +00:00
Update default path for installed binaries.
This is useful for installing binaries in a default install (when JANET_PATH or JANET_MODPATH is not explicitly set).
This commit is contained in:
parent
73dba691b1
commit
1168f47768
7
jpm
7
jpm
@ -34,8 +34,13 @@
|
||||
(def JANET_LIBPATH (or (os/getenv "JANET_LIBPATH")
|
||||
(string exe-dir "/../lib")))
|
||||
|
||||
# We want setting JANET_PATH to contain installed binaries. However, it is convenient
|
||||
# to have globally installed binaries got to the same place as jpm itself, which is on
|
||||
# the $PATH.
|
||||
(def JANET_BINPATH (or (os/getenv "JANET_BINPATH")
|
||||
(string (dyn :syspath) "/bin")))
|
||||
(if-let [mp (os/getenv "JANET_MODPATH")] (string mp "/bin"))
|
||||
(if-let [mp (os/getenv "JANET_PATH")] (string mp "/bin"))
|
||||
exe-dir))
|
||||
|
||||
#
|
||||
# Utilities
|
||||
|
Loading…
Reference in New Issue
Block a user