get python root directory easily
Project description
Find root directory simply
You can find the root directory intuitively, quickly and simply.
Usage
- Install by
pip install rootdir - Add
__root__.pyto your root path. import rootdir- use as
rootdit.root_dir(__file__)
example1
If you need root directory, you could get it simply.
import rootdir
if __name__ == "__main__":
print(rootdir.root_dir(__file__))
example2
If you've found a directory for Python dependencies, you can solve it all at once with the following function.
import rootdir
rootdir.root_dependency(__file__)
Now you can import Python dependencies from root directory.
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 rootdir-0.1.2.post7.tar.gz.
File metadata
- Download URL: rootdir-0.1.2.post7.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b8795b896cbedf7b7a02e38e6cfda32177f0051c33e9f9b3ca461a6a1d8195d
|
|
| MD5 |
b262094a0e01ef8119a73c6b2f4e2190
|
|
| BLAKE2b-256 |
9954f22d3244aa907b4646c4f446206a675ac04a0de7beadc02b40fb41383396
|
File details
Details for the file rootdir-0.1.2.post7-py3-none-any.whl.
File metadata
- Download URL: rootdir-0.1.2.post7-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c512f1914fd23f300b58db38ac560edb0ebefd6165899cdf8a89c27cf28a6c
|
|
| MD5 |
28b18dd118dec04b2e536a2ec0b0e35e
|
|
| BLAKE2b-256 |
41051147877c2d9d26e0db75f6ec54331c1d1e390cb4af4f0411a512e42d3426
|