Skip to main content

addtopath

License: MIT PyPI

Introduction

addtopath is a CLI program which allows you to easily add a directory to your PATH using the terminal on Windows.

Requirements

You need to have Python 3.6 or higher installed. This will allow you to install addtopath with Python's package manager, pip.

How to install

To install addtopath with pip:

pip install addtopath

How to use

After installation with pip, the addtopath executable should be available on the PATH. It's very easy to use: just run it with a directory as an argument, to add that directory to the PATH.

To add the current working directory to the PATH, run:

addtopath .

It works with relative paths:

addtopath ..

It also works with the ~ symbol in Powershell, for example:

addtopath ~/scripts

You can, of course, supply the absolute path to your target directory:

addtopath "C:\Program Files\SomeProgram"

User and system PATHs

addtopath adds to the user path by default. This doesn't require admin permissions, and is usually sufficient. However, you can instead add to the system path using the -s or --system flag.

For example:

addtopath . -s

Note: This requires an administrator Powershell or Command Prompt.

Release files for addtopath 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for addtopath 1.2.0
File Size Uploaded
addtopath-1.2.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for addtopath 1.2.0
File Interpreter ABI Platform
addtopath-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / addtopath-1.2.0.tar.gz

Download URL addtopath-1.2.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
033bbabd6064f6ad325f8935fa4a5740df9d25e4902175a1a4b3c47b52a3a6e5
BLAKE2b-256 checksum
How to use checksums
95044894d8e880a23c8b6d1fde8fd7c84c45c1ea0ba5dde9b3ad4cd63085ffca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

Release files / addtopath-1.2.0-py3-none-any.whl

Download URL addtopath-1.2.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f0f6501cdc7e4f28a05b3332b96750e5c56e416607b6dae211d6a79d3d0f81b
BLAKE2b-256 checksum
How to use checksums
0f90fbdc6a1e500896f9206237f54f3b0262b3fa3c9876adbc990b28a08c7f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page