package rocq-runtime
Install
Dune Dependency
Authors
Maintainers
Sources
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be
doc/rocq-runtime.lib/Envars/index.html
Module Envars
Source
This file provides a high-level interface to the environment variables needed by Rocq to run (such as coqlib). The values of these variables may come from different sources (shell environment variables, command line options, options set at the time Rocq was build).
getenv_rocq name
returns the value of "ROCQ$name" if it exists, otherwise the value of "COQ$name" if it exists and warns that it is deprecated, otherwise None
.
expand_path_macros warn s
substitutes environment variables in a string by their values. This function also takes care of substituting path of the form '~X' by an absolute path. Use warn
as a message displayer.
home warn
returns the root of the user directory, depending on the OS. This information is usually stored in the $HOME environment variable on POSIX shells. If no such variable exists, then other common names are tried (HOMEDRIVE, HOMEPATH, USERPROFILE). If all of them fail, warn
is called.
docdir
is the path to the installed documentation.
datadir
is the path to the installed data directory.
configdir
is the path to the installed config directory.
coqbin
is the name of the current executable.
coqroot
is the path to coqbin
. The following value only makes sense when executables are running from source tree (e.g. during build or in local mode).
coqpath
is the standard path to coq. Notice that coqpath is stored in reverse order, since that is the order it gets added to the search path.
camlfind ()
is the path to the ocamlfind binary.
Rocq tries to honor the XDG Base Directory Specification to access the user's configuration files.
see http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Prints the configuration information