mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-07 01:33:14 -06:00
1.8 KiB
1.8 KiB
sywdd
sywdd will yield desired deliverables
Automagic Snippet
# https://github.com/daylinmorgan/swydd?tab=readme-ov-file#automagic-snippet
_src = (_i := __import__)("pathlib").Path(__file__).parent / "swydd/__init__.py"
if not (_i("importlib.util").util.find_spec("sywdd") or _src.is_file()):
_r = _i("urllib.request").request.urlopen("https://swydd.dayl.in/swydd.py")
_src.parent.mkdir(exist_ok=True)
_src.write_text(_r.read().decode("utf-8"))