@@ -91,12 +91,13 @@ the chapter on [Code Loading](@ref).
91
91
92
92
The ` JULIA_LOAD_PATH ` environment variable is used to populate the global Julia
93
93
[ ` LOAD_PATH ` ] ( @ref ) variable, which determines which packages can be loaded via
94
- ` import ` and ` using ` (see [ Code Loading] ( @ref ) ). Unlike the shell ` PATH ` variable,
95
- empty entries in ` JULIA_LOAD_PATH ` are expanded to the default value of ` LOAD_PATH ` ,
96
- ` ["@", "@v#.#", "@stdlib"] ` when populating ` LOAD_PATH ` . This allows easy appending,
97
- prepending, etc. of the load path value in shell scripts regardless of whether
98
- ` JULIA_LOAD_PATH ` is already set or not. For example, to prepend the directory
99
- ` /foo/bar ` to ` LOAD_PATH ` just do
94
+ ` import ` and ` using ` (see [ Code Loading] ( @ref ) ).
95
+
96
+ Unlike the shell ` PATH ` variable, empty entries in ` JULIA_LOAD_PATH ` are expanded to
97
+ the default value of ` LOAD_PATH ` , ` ["@", "@v#.#", "@stdlib"] ` when populating
98
+ ` LOAD_PATH ` . This allows easy appending, prepending, etc. of the load path value in
99
+ shell scripts regardless of whether ` JULIA_LOAD_PATH ` is already set or not. For
100
+ example, to prepend the directory ` /foo/bar ` to ` LOAD_PATH ` just do
100
101
``` sh
101
102
export JULIA_LOAD_PATH=" /foo/bar:$JULIA_LOAD_PATH "
102
103
```
@@ -110,6 +111,32 @@ This behavior was chosen so that it would be possible to set an empty load path
110
111
the environment variable. If you want the default load path, either unset the
111
112
environment variable or if it must have a value, set it to the string ` : ` .
112
113
114
+ ### ` JULIA_DEPOT_PATH `
115
+
116
+ The ` JULIA_DEPOT_PATH ` environment variable is used to populate the global Julia
117
+ [ ` DEPOT_PATH ` ] ( @ref ) variable, which controls where the package manager, as well
118
+ as Julia's code loading mechanisms, look for package registries, installed
119
+ packages, named environments, repo clones, cached compiled package images, and
120
+ configuration files.
121
+
122
+ Unlike the shell ` PATH ` variable but similar to ` JULIA_LOAD_PATH ` , empty entries in
123
+ ` JULIA_DEPOT_PATH ` are expanded to the default value of ` DEPOT_PATH ` . This allows
124
+ easy appending, prepending, etc. of the depot path value in shell scripts regardless
125
+ of whether ` JULIA_DEPOT_PATH ` is already set or not. For example, to prepend the
126
+ directory ` /foo/bar ` to ` DEPOT_PATH ` just do
127
+ ``` sh
128
+ export JULIA_DEPOT_PATH=" /foo/bar:$JULIA_DEPOT_PATH "
129
+ ```
130
+ If the ` JULIA_DEPOT_PATH ` environment variable is already set, its old value will be
131
+ prepended with ` /foo/bar ` . On the other hand, if ` JULIA_DEPOT_PATH ` is not set, then
132
+ it will be set to ` /foo/bar: ` which will have the effect of prepending ` /foo/bar ` to
133
+ the default depot path. If ` JULIA_DEPOT_PATH ` is set to the empty string, it expands
134
+ to an empty ` DEPOT_PATH ` array. In other words, the empty string is interpreted as a
135
+ zero-element array, not a one-element array of the empty string. This behavior was
136
+ chosen so that it would be possible to set an empty depot path via the environment
137
+ variable. If you want the default depot path, either unset the environment variable
138
+ or if it must have a value, set it to the string ` : ` .
139
+
113
140
### ` JULIA_HISTORY `
114
141
115
142
The absolute path ` REPL.find_hist_file() ` of the REPL's history file. If
@@ -128,25 +155,9 @@ by default `1`, and larger values correspond to larger amounts of time.
128
155
129
156
Suppose the value of ` $JULIA_PKGRESOLVE_ACCURACY ` is ` n ` . Then
130
157
131
- * the number of pre-decimation iterations is ` 20*n ` ,
132
- * the number of iterations between decimation steps is ` 10*n ` , and
133
- * at decimation steps, at most one in every ` 20*n ` packages is decimated.
134
-
135
- ### ` JULIA_DEPOT_PATH `
136
-
137
- A stack of depot locations where the package manager, as well as Julia's code loading
138
- mechanisms, look for package registries, installed packages, named environments,
139
- repo clones, cached compiled package images, and configuration files.
140
-
141
- The depot path is controlled by Julia's ` DEPOT_PATH ` global variable which is populated at
142
- startup based on the value of the ` JULIA_DEPOT_PATH ` environment variable. The first entry
143
- is the “user depot” and should be writable by and owned by the current user. The user depot
144
- is where: registries are cloned, new package versions are installed, named environments are
145
- created and updated, package repos are cloned, newly compiled package image files are
146
- saved, log files are written, development packages are checked out by default, and global
147
- configuration data is saved. Later entries in the depot path are treated as read-only and
148
- are appropriate for registries, packages, etc. installed and managed by system
149
- administrators.
158
+ * the number of pre-decimation iterations is ` 20*n ` ,
159
+ * the number of iterations between decimation steps is ` 10*n ` , and
160
+ * at decimation steps, at most one in every ` 20*n ` packages is decimated.
150
161
151
162
152
163
## External applications
0 commit comments