Manage the Windows System PATH
salt.states.win_path.
absent
(name)¶Remove the directory from the SYSTEM path
Example:
'C:\sysinternals':
win_path.absent
salt.states.win_path.
exists
(name, index=None)¶Add the directory to the system PATH at index location
Position where the directory should be placed in the PATH. This is 0-indexed, so 0 means to prepend at the very start of the PATH.
Note
If the index is not specified, and the directory needs to be added to the PATH, then the directory will be appended to the PATH, and this state will not enforce its location within the PATH.
Examples:
'C:\python27':
win_path.exists
'C:\sysinternals':
win_path.exists:
- index: 0
'C:\mystuff':
win_path.exists:
- index: -1
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy