MCPcopy Create free account
hub / github.com/boostorg/build / path_variable_setting_command

Function path_variable_setting_command

src/tools/common.py:528–536  ·  view source on GitHub ↗

Returns a command to sets a named shell path variable to the given NATIVE paths on the current platform.

(variable, paths)

Source from the content-addressed store, hash-verified

526 return variable + "=" + value + os.linesep + "export " + variable + os.linesep
527
528def path_variable_setting_command(variable, paths):
529 """
530 Returns a command to sets a named shell path variable to the given NATIVE
531 paths on the current platform.
532 """
533 assert isinstance(variable, basestring)
534 assert is_iterable_typed(paths, basestring)
535 sep = os.path.pathsep
536 return variable_setting_command(variable, sep.join(paths))
537
538def prepend_path_variable_command(variable, paths):
539 """

Callers 1

Calls 2

is_iterable_typedFunction · 0.90
variable_setting_commandFunction · 0.85

Tested by

no test coverage detected