modulepath
Returns path of a module.
📝Syntax
p = modulepath(module_short_name)
p = modulepath(module_short_name, option)
📥Input Arguments
Parameter Description
module_short_name or 'nelson' a string: short module's name. module must exist in nelson session.
option a string: 'etc', 'bin', 'root', 'builtin', 'tests'.
📤Output Arguments
Parameter Description
p a string: path or subpath of the module.
📄Description

modulepath is an helper's function to return module root path or a subdirectory.

modulepath('nelson') is equivalent to modulepath('nelson', 'root')

modulepath('nelson', 'bin') return path of nelson's executables.

modulepath('nelson', 'builtin') returns path of nelson's dynamic libraries.

💡Examples
modulepath('core')
modulepath('core', 'root')
modulepath('core', 'etc')
modulepath('core', 'bin')
modulepath('core', 'builtin')
modulepath('core', 'tests')
modulepath('nelson', 'root')
modulepath('nelson', 'bin')
modulepath('nelson', 'builtin')
🔗See Also
requiremodulegetmodules
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub