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', follow_links=False)

# adding an absolute path to PYTHONPATH
add_abs_path('/path/to/my/folder')

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

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.2.tar.gz (1.8 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.2-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezpath-1.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ezpath-1.2.tar.gz
Algorithm Hash digest
SHA256 eaa0c0aeab771c05e2097140feeb58e0177924bac79b4af1876511076e52ddbc
MD5 60ddd7f0ec0613cece87c6f2788b3f59
BLAKE2b-256 a8d9f779f4fa82a834862ffd8338e41f013cd55e5514097c65f043574fce8966

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ezpath-1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ezpath-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f55897ac9d6c8e45a9fdb1a3bafa7303a55306a79439a89aee35e38173651c2c
MD5 0522c764d2b8ba1a13d8cfedc86e889e
BLAKE2b-256 1c3ca139b1bb513f0e8d19f1aa7e7ad937f8833ef4d447ddcbb59c8694014e16

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