Skip to main content

ensure that $TOP is always exported

Project description

This package installs a pth file that will ensure that a $TOP environment variable is set to the top of your development codebase before running any other piece of python. The $TOP environment variable is set by searching the filesytem for a .top file, starting from the .pth file itself and travsering parent directories.


$ virtualenv tmpenv
$ . tmpenv/bin/activate
$ pip install export-top-var
$ touch .top
$ python -c 'import os; os.system("echo $TOP")'

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Source Distribution

env_export_top-0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

env_export_top-0.0-py2.py3-none-any.whl (2.1 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