Skip to main content

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.
  • Versatile Application: Useful in a variety of scenarios, from logging and file management to accessing resources bundled with your application.

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 = getExecutablePath()
print("Executable/Script Path:", executable_path)

# Get the path of the temporary directory (for PyInstaller one-file mode)
temp_path = getTempPath()
print("Temporary Directory Path:", temp_path)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pathenger-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pathenger-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file pathenger-0.1.0.tar.gz.

File metadata

  • Download URL: pathenger-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for pathenger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d2970a5c3cbf9833050d2e8b21c008e193d5cad96e8dffc3bebf06af187b0363
MD5 5f8b2e6ae94873e0e3f6af88c67e9aca
BLAKE2b-256 5f9989c5c254a19e7de744e885de2bc498e1f026754eb596534f53b2d8ace292

See more details on using hashes here.

File details

Details for the file pathenger-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pathenger-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for pathenger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74aad976a122cff7d1b3af043cd834e940f30259e4ad10d43a63b1eca4dd14ce
MD5 fc45bc49c0c1dc328d48c3de4601d05c
BLAKE2b-256 fff7ee80b979c26b13cd135c3ce80eed0f9740d753847ed5a8da9fb57b31ccb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page