Update reference manpage and add $__type to code-local

To access the type library from `code-local`, it is required to have the
`$__type` variable. Else, the type-specific library can not be accessed.
This commit is contained in:
matze 2020-07-30 09:54:30 +02:00
parent 76bc954615
commit f2e589f2f8
2 changed files with 11 additions and 1 deletions

View file

@ -196,6 +196,7 @@ class Code:
env = os.environ.copy() env = os.environ.copy()
env.update(self.env) env.update(self.env)
env.update({ env.update({
'__type': cdist_object.cdist_type.absolute_path,
'__object': cdist_object.absolute_path, '__object': cdist_object.absolute_path,
'__object_id': cdist_object.object_id, '__object_id': cdist_object.object_id,
}) })

View file

@ -253,6 +253,11 @@ __global
Directory that contains generic output like explorer. Directory that contains generic output like explorer.
Available for: initial manifest, type manifest, type gencode, shell. Available for: initial manifest, type manifest, type gencode, shell.
__library
Directory that contains common code.
Available for: initial manifest, type manifest, type gencode, code scripts,
global explorer, type explorer.
__messages_in __messages_in
File to read messages from. File to read messages from.
@ -301,11 +306,15 @@ __target_host_tags
__type __type
Path to the current type. Path to the current type.
Available for: type manifest, type gencode. Available for: type manifest, type gencode, local code.
__type_explorer __type_explorer
Directory that contains the type explorers. Directory that contains the type explorers.
Available for: type explorer. Available for: type explorer.
__type_library
Directory that contains type-specific common code.
Available for: type explorer, code-remote.
Environment variables (for writing) Environment variables (for writing)
----------------------------------- -----------------------------------