Manage the Windows System PATH
salt.states.win_path.
absent
(name)¶Remove the directory from the SYSTEM path
index: where the directory should be placed in the PATH (default: 0)
Example:
'C:\sysinternals':
win_path.absent
salt.states.win_path.
exists
(name, index=None)¶Add the directory to the system PATH at index location
index: where the directory should be placed in the PATH (default: None). This is 0-indexed, so 0 means to prepend at the very start of the PATH. [Note: Providing no index will append directory to PATH and will not enforce its location within the PATH.]
Example:
'C:\python27':
win_path.exists
'C:\sysinternals':
win_path.exists:
- index: 0
Generated on February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy