Skip to main content

A tool to temporarily add folders to the path.

Project description

temp_path

This is a package to allow you to add a folder to the path temporarily.

Often when you deal with other people's code, it's not set up to be importable / packaged. This tool allows you to import from those files anyways, without having to permanently modify your path.

Simply run:

from temp_path import temp_path
with temp_path('../someone/elses/code'):
    import their.messy.code

their.messy.code.use()

Of course, this is not just for importing python modules but also for other stuff you might need on your path.

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

temp_path-0.1.1.tar.gz (1.4 kB view hashes)

Uploaded Source

Built Distribution

temp_path-0.1.1-py3-none-any.whl (1.7 kB view hashes)

Uploaded 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