BT.add_path

BT.add_path

BT.add_path

Function

appends or prepends a path to the currently valid PATH.

Syntax

Parameters

ParametersTypeRequiredDefaultDescription
pathStringYesNoneThe path to write to PATH.
modeStringNoappendWriting position; prepend means preceding, omitting or append means appending.

Return Value

TypeDescription
BoolReturns true for actual writing; returns false when the path already exists and is not added repeatedly.

Examples

Notes

  • The path will be parsed first according to BT path rules, @ and @/... are based on the project root.
  • This method only writes the BT runtime environment variable overlay and does not modify the system's permanent PATH.