Skip to main content

Turn-Key solution to manage paths relative to the current file

Project description

The ezpath module allows managing paths relative to the file calling the module's functions, as opposed to being relative to the current working directory. This can be helpful to manage dependencies in a large local codebase.

Example:

from ezpath import *

# adding ../src (relative to the current file) to PYTHONPATH
add_rel_path('../src')

# getting the absolute path of a file/folder relative to the current file
get_abs_path('../src/my_file.py')

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

ezpath-1.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

ezpath-1.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file ezpath-1.1.tar.gz.

File metadata

  • Download URL: ezpath-1.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for ezpath-1.1.tar.gz
Algorithm Hash digest
SHA256 ef5b32d988eacd0df5888764100a63023d1dffe69cec701de70eaded99a2eac4
MD5 ec52312c403cf08c8a5892a00cc258d9
BLAKE2b-256 b278585a7a24b1abf8b9ee87c84a75524c4769944cde1a9a60b5635e9365030e

See more details on using hashes here.

File details

Details for the file ezpath-1.1-py3-none-any.whl.

File metadata

  • Download URL: ezpath-1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for ezpath-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e13b7984c142edc84584d1e0e7d9d4b935cac3512810364f58c3cfc8ae033292
MD5 281a32ce350011583fbfc43be993976a
BLAKE2b-256 919145d67f3151834f0368801e70fae3975680c61b25dc28a32b21abe43eb1eb

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