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

Function prepend_path_variable_command

src/tools/common.py:538–547  ·  view source on GitHub ↗

Returns a command that prepends the given paths to the named path variable on the current platform.

(variable, paths)

Source from the content-addressed store, hash-verified

536 return variable_setting_command(variable, sep.join(paths))
537
538def prepend_path_variable_command(variable, paths):
539 """
540 Returns a command that prepends the given paths to the named path variable on
541 the current platform.
542 """
543 assert isinstance(variable, basestring)
544 assert is_iterable_typed(paths, basestring)
545
546 return path_variable_setting_command(variable,
547 paths + os.environ.get(variable, "").split(os.pathsep))
548
549def file_creation_command():
550 """

Callers

nothing calls this directly

Calls 3

is_iterable_typedFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected