File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,15 @@ The syntax of the environment variables rules in "rules.txt" is :
2222ENVIRONMENT_VARIABLE OPERATION REGEXP
2323```
2424
25- Each rule is on a line. There are two operations "ADD " and "REMOVE". You can do multiple operations on a single environment variable.
25+ Each rule is on a line. There are three operations "APPEND", "PREPEND " and "REMOVE". You can do multiple operations on a single environment variable.
2626For the regexp syntax check https://cplusplus.com/reference/regex/ECMAScript/
2727
2828Example of rules removing python from the environment variables to use another version :
2929```
3030PATH REMOVE ;?[^;]*\\AppData\\Local\\Programs\\Python\\[^;]*
31- PATH ADD C:\\MyApps\\Python310
32- PATH ADD C:\\MyApps\\Python310\\Scripts
31+ PATH PREPEND C:\\MyApps\\Python310
32+ PATH PREPEND C:\\MyApps\\Python310\\Scripts
33+ PYTHONPATH REMOVE .*
3334```
3435
3536## License
You can’t perform that action at this time.
0 commit comments