Skip to main content
# pathology

Provide a a subclass of pathlib's Path that adds a static script_dir() method to Path, which returns the Path to the
directory of the calling script. It could have been just a standalone function, but for discoverability reasons it
seems better to stick it on top of pathlib's Path.

# Usage

It's a drop-in replacement to pathlib's Path:

```
from pathology import Path

print('The script dir is:', Path.script_dir())

```

# TutsPlus

This package was developed as sample code for a TutsPlus article. Check it out:
[How to Write, Package and Distribute a Library in Python](http://code.tutsplus.com/tutorials/how-to-write-package-and-distribute-a-library-in-python--cms-28693)


Download files

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

Source Distribution

pathology-0.2.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

pathology-0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pathology-0.2.tar.gz.

File metadata

  • Download URL: pathology-0.2.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pathology-0.2.tar.gz
Algorithm Hash digest
SHA256 2ed73e76c2888a5c22b01614e5ae9f7ad6e70f6670b5756b90a025dc785451ff
MD5 85343eb61959b828cfe132ecb08f4d8d
BLAKE2b-256 74ff3a263a2f99afaf778156b3c4fd43bafcf1fa130ffa531c7332a8423fa24d

See more details on using hashes here.

File details

Details for the file pathology-0.2-py3-none-any.whl.

File metadata

  • Download URL: pathology-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pathology-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcbda66d2f190adf7ab4569a7659da7ec0b228c723d18cffdca4b585784e83d5
MD5 6d29199c354005d6e11388ec77cda6a9
BLAKE2b-256 ceadc0913c442ec8e094fb6eaace93bf9388457d78dcec9cd5f7528b6102d491

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

2 files

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