Skip to main content

# Description convinent script to adapt python’s sys.path

# Install

pip install adaptpath

# Usage
  • Say we have dir-tree below:

    a / b / c.py x / y / z.py

  • Now suppose we are in “z.py” and we want to do this:

    from a.b import c

  • We can put the lines below ahead of “z.py”

    from adaptpath import adaptpath adaptpath.adapt_from_path(2, __file__)

# Test

pytest test

Metadata

Release files for adaptpath 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adaptpath 0.3.7
File Size Uploaded Provenance
adaptpath-0.3.7.tar.gz 4.4 kB Without provenance Details

Release files / adaptpath-0.3.7.tar.gz

Download URL adaptpath-0.3.7.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ced15bc76f9ac5df7a11b97acaf5d044bb9d0d47aa2fa1cea1ffe6c1ce13a7fa
BLAKE2b-256 checksum
How to use checksums
3f1c9dca1d41ad0bbf5e23b72148b2e97d38fc8c62bd99ae58b77ff5aec8c35a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for adaptpath 0.3.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page