Skip to main content

A simple tool to set environment variables before running a command

Project description

pysetenv is a simple Python-based program to allow users to set environment variables before executing a command. While it’s cross-platform, it’s primarily designed to be used on Windows, where cmd.exe makes this considerably more difficult than on POSIX systems.

Why?

pysetenv is designed as a support package to help authors of other Python packages create command-line strings like you’d expect from sh or the env command. Generally, pysetenv will only be installed on Windows systems, with POSIX systems using sh or env. For example, in your setup.py, you would write:

setup(
    # ...
    install_requires=['pysetenv;platform_system=="Windows"'],
)

License

This project is licensed under the BSD 3-clause license.

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

pysetenv-0.1.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

pysetenv-0.1.1-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

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