Reliable path resolution for Python apps, even in frozen environments like PyInstaller.
Project description
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
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
deepath-0.1.3.tar.gz
(3.7 kB
view details)
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 deepath-0.1.3.tar.gz.
File metadata
- Download URL: deepath-0.1.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b49adc496dafb5a0287d08c087aac1e31f7c17dbfff403ba40493cd59169550
|
|
| MD5 |
8841e0d45cc08a6dfd6ff2c398fb8a4c
|
|
| BLAKE2b-256 |
dfe9654cd53aca4cc050963c5d70f37eef91b9b65b36db0511fd6ae1115b476a
|
File details
Details for the file deepath-0.1.3-py3-none-any.whl.
File metadata
- Download URL: deepath-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
083ae1e697459c60954f881774191cc689ff7131fddd29a44d5b5c6cb77fbe3b
|
|
| MD5 |
549fc0217e45a53c46d0fa5fe417b555
|
|
| BLAKE2b-256 |
13b1e987ca759039d68122797837fce38a34cdf7a8d13198f3180c93673a3d95
|