Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Can I add working directory to path with a python code?

Need a code to add a working directory to system path for a GUI am working on
I'm not sure if python actually provides any permanent solution. However you are able to set Path Variables with CMD, and PowerShell.

EX

[b]Add directory to system path environment variable:
Open administrator command prompt
Run  the below command[/b]

Code
pathman /as directoryPath
Remove path from system path environment variable:
Run the below command from elevated command prompt


Code
pathman /rs directoryPath


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 630 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by mikehackMay 9, 2022 11:12 AM 2 150 May 9, 2022 11:12 AM
Last Post: mikehack
[C] by FhackMar 19, 2022 04:11 PM 27 970 Mar 19, 2022 04:11 PM
Last Post: focuswow35