us_pathΒΆ
us_path sets and returns the environment variable uniscript-path
.
-
svPath = us_path()
-
ret = us_path(ssCommand)
-
ret = us_path(ssCommand, ssPath)
Parameters
-
ssCommand
ssCommand is one of the following strings:
Command Description "a"
or"add"
Add ssPath to the list. "g"
or"get"
Returns the environment variable "uniscript-path"
, separated by a colon."s"
or"gets"
Returns the environment variable "uniscript-path"
as a string vector. Each element contains one path element."m"
or"match-remove"
Removes a path from "uniscript-path"
. Wildcards*
and?
can be used, see strmatch."r"
or"remove"
Removes a single path.
-
ssPath
ssPath is a path.
Comment
The function modifies or returns the environment variable uniscript-path
.
The modifications are not permanently saved.
The variable is used with the UniScript debugger to find the complete
file name of a UniScript file:
* search_path(getenv("uniscript-path"), "do_cmds.ic")
D:\uniplot-64d\script\uniplot\do_cmds.ic
*
History
Version | Description |
---|---|
R2016.0 | New. |
See also
id-893639