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.

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.2.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.2.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pathenger-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 80e9c18e4d558c9e41db7cf88c74c0322b965a040579658fb1aa54f7fc23e2e7
MD5 2f813bf2d11a6ee296613bd1730da859
BLAKE2b-256 77f1ff83122ba8679b91c046b7de1ac160b7d67c52b46293cc89f65a5afe6e99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pathenger-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d244d982875f1d6a8f19c87d21dc59a041e47fa6337538b3fc9aa9fbb6b2fc5
MD5 3f67a01582d64c7ec0098811f74bf79e
BLAKE2b-256 b1f034d49761bdcde94ad0545c8a99961b47b2a93c6b220619cd31dcb0ea009a

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