A utility package for determining the paths of executable files and temporary directories, especially useful for applications packaged with PyInstaller.
Project description
pathenger
pathenger is a utility package for Python, offering a straightforward way to determine the paths of executable files and temporary directories. It is especially useful for applications packaged with PyInstaller, facilitating access to crucial path information in different execution environments.
Features
- Executable Path Detection: Easily retrieve the path of the executable file when your application is packaged with PyInstaller.
- Temporary Directory Path: Obtain the path to the temporary directory used by PyInstaller in one-file mode, allowing for efficient management of temporary files.
Installation
Install pathenger directly from PyPI to add it to your project:
pip install pathenger
Usage
pathenger simplifies the process of getting the executable or script path, and the temporary directory path, especially for PyInstaller-packaged applications. Here's how to use it:
from pathenger import *
# Get the path of the executable or script
executable_path = get_executable_path()
print("Executable/Script Path:", executable_path)
# Get the path of the temporary directory (for PyInstaller one-file mode)
temp_path = get_temp_path()
print("Temporary Directory Path:", temp_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 pathenger-0.3.0.tar.gz.
File metadata
- Download URL: pathenger-0.3.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f99aad8dc0b38014a68f8a703d00494c43228feec72940fec26e5893b197a8
|
|
| MD5 |
531e3b8f99bb9c523d96e9cab96f0035
|
|
| BLAKE2b-256 |
e03d87fd3590752f0c7544936d0b9686e73c8fda8901aa10deb6376f944bb205
|
File details
Details for the file pathenger-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pathenger-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
138cbefa2f98567443c6a3d3e429d09aceeabe7fd33392892ac7f733d9728a8c
|
|
| MD5 |
d05c0737b97f3f005d8607e6b2023556
|
|
| BLAKE2b-256 |
b24d749ad59ee08109c8c93cd9aa61f3be3d01aa7bfd1e8b5c39f01d9e424d26
|