A simple tool to set environment variables before running a command
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.
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"'], )
This project is licensed under the BSD 3-clause license.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pysetenv-0.1.1-py2.py3-none-any.whl (4.3 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size pysetenv-0.1.1.tar.gz (3.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for pysetenv-0.1.1-py2.py3-none-any.whl