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 details)

Uploaded Source

File details

Details for the file pathwin-1.0.1.tar.gz.

File metadata

  • Download URL: pathwin-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for pathwin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 78d923e58fab8440b3697f25fe047d85c3b3156e869071d686f65580eeeef36e
MD5 3b0d659c1ce036536ce510fc48963b8e
BLAKE2b-256 d8cb24e317fd354ac59c212399a0b82e677d81737433d13c2090fd7d3eacfc9d

See more details on using hashes here.

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