Skip to main content

setPath is a library for easy manipulation of the Windows environment variable Path.

Project description

pathwin

setPath is a library for easy manipulation of the Windows environment variable Path.

import pathwin

examplePath = "C:\\example\\"

# Manipulation of system environment variables
pathwin = Path(True)

# Manipulation of user environment variables
pathwin = Path(False)

# get Path
existPath = pathwin.getPath()
# -> "C:\\example;C:\\example2"

existPathList = pathwin.getPathList()
# -> ["C:\\example", "C:\\example2"]

# Path Override
pathwin.setPath(existPath + ";" + examplePath)

# Add to top
pathwin.addPath(examplePath)

# Fourth Add to
pathwin.addPath(examplePath, 3)

# delete path
pathwin.removePath(examplePath)

Installing pathwin and Supported Versions

pip install pathwin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pathwin-1.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page