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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file temp_path-0.1.1.tar.gz.
File metadata
- Download URL: temp_path-0.1.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.7.0 Darwin/18.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a127b6425202b7840de2194088645d5c19ea7480483f989636da6a989c362364
|
|
| MD5 |
14d74e47b5db7515a2d0b56927b5a813
|
|
| BLAKE2b-256 |
5a284e34d04db26ddac016eefa8289031a16c5c5ac6ea411c2d1f8f6769f3f9d
|
File details
Details for the file temp_path-0.1.1-py3-none-any.whl.
File metadata
- Download URL: temp_path-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.7.0 Darwin/18.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
234218b3178441d8838593129280c47f075b0a3d96d8da1b527eab835bb04019
|
|
| MD5 |
e51245f2bc7edae89c73585076bc3376
|
|
| BLAKE2b-256 |
f6196b3604a65c90426c7210f96b0ae25f1dcffbecb95b56107c531f05159cff
|