deepath
deepath is a small Python utility that reliably resolves absolute paths to resource files in both development and frozen (PyInstaller) environments.
🚀 Why deepath?
- Handles PyInstaller's
_MEIPASStemp dirs (onefile/onedir) - Works with virtualenvs and CLI tools
- Auto-detects project root using markers like
pyproject.toml,.git, or.env - Customizable via code or environment variables
🧩 Usage
from deepath import deepath
path = deepath("assets/image.png")
🔧 CLI
deepath assets/image.png
⚙️ Custom Project Markers
In Python:
from deepath.env import set_project_markers
set_project_markers([".myroot", "setup.cfg"])
Or with an environment variable:
export DEEPATH_MARKERS=".myroot,.customflag"
✅ Installation
pip install deepath
Release files for deepath 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deepath-0.1.3.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepath-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / deepath-0.1.3.tar.gz
| Download URL | deepath-0.1.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b49adc496dafb5a0287d08c087aac1e31f7c17dbfff403ba40493cd59169550
|
|
BLAKE2b-256 checksum How to use checksums |
dfe9654cd53aca4cc050963c5d70f37eef91b9b65b36db0511fd6ae1115b476a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / deepath-0.1.3-py3-none-any.whl
| Download URL | deepath-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
083ae1e697459c60954f881774191cc689ff7131fddd29a44d5b5c6cb77fbe3b
|
|
BLAKE2b-256 checksum How to use checksums |
13b1e987ca759039d68122797837fce38a34cdf7a8d13198f3180c93673a3d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|