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

Function path_variable_setting_command

v2/tools/common.py:518–526  ·  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

516 return variable + "=" + value + os.linesep + "export " + variable + os.linesep
517
518def path_variable_setting_command(variable, paths):
519 """
520 Returns a command to sets a named shell path variable to the given NATIVE
521 paths on the current platform.
522 """
523 assert(isinstance(variable, str))
524 assert(isinstance(paths, list))
525 sep = os.path.pathsep
526 return variable_setting_command(variable, sep.join(paths))
527
528def prepend_path_variable_command(variable, paths):
529 """

Callers 1

Calls 1

variable_setting_commandFunction · 0.85

Tested by

no test coverage detected