Pathology
A subclass of pathlib's Path that adds a script_dir() method
Install / Use
/learn @the-gigi/PathologyREADME
pathology
Provide 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.path 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
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
