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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for temp_path-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234218b3178441d8838593129280c47f075b0a3d96d8da1b527eab835bb04019 |
|
MD5 | e51245f2bc7edae89c73585076bc3376 |
|
BLAKE2b-256 | f6196b3604a65c90426c7210f96b0ae25f1dcffbecb95b56107c531f05159cff |