# 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)
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)
Metadata
Release files for pathology 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pathology-0.2.tar.gz | 1.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pathology-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.2 kB
Release files / pathology-0.2.tar.gz
| Download URL | pathology-0.2.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ed73e76c2888a5c22b01614e5ae9f7ad6e70f6670b5756b90a025dc785451ff
|
|
BLAKE2b-256 checksum How to use checksums |
74ff3a263a2f99afaf778156b3c4fd43bafcf1fa130ffa531c7332a8423fa24d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pathology-0.2-py3-none-any.whl
| Download URL | pathology-0.2-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcbda66d2f190adf7ab4569a7659da7ec0b228c723d18cffdca4b585784e83d5
|
|
BLAKE2b-256 checksum How to use checksums |
ceadc0913c442ec8e094fb6eaace93bf9388457d78dcec9cd5f7528b6102d491
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|