import_file 1.11
pip install import_file
Latest version
Released:
Import py files using their relative or absolute path.
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: Public Domain
- Author: Yuval Greenfield
- Tags import, path, file
Classifiers
- Development Status
- Environment
- Intended Audience
- Operating System
- Programming Language
- Topic
Project description
import_file
import_file is meant to import a python script from a normal file path. Relative (dotted) imports are complicated, and fixing sys.path just feels wrong.
Usage examples:
>>>from import_file import import_file >>>mylib = import_file('c:\mylib.py') >>>another = import_file('relative_subdir/another.py')
So now you aren’t limited to importing only within your package or trail of __init__.py files.
This should work for python 2.5-3.2 and it’s public domain, have fun.
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: Public Domain
- Author: Yuval Greenfield
- Tags import, path, file
Classifiers
- Development Status
- Environment
- Intended Audience
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file import_file-1.11.zip
.
File metadata
- Download URL: import_file-1.11.zip
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f6b92d3928c3f1eaa915799370a1ef7f323ad86b89f2740a69e4c23c60ad7be |
|
MD5 | 3660e420fe77a6b603ca69e91e1885a2 |
|
BLAKE2b-256 | 6e0cec8618b20e15d8baae8a78e9d3027d2462f361562a5ea2674533a34544a0 |