19 lines
393 B
Python
19 lines
393 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
PrePrompt hook for PMDA drug info skill.
|
|
Injects usage instructions for the drug information tools.
|
|
"""
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def main():
|
|
prompt_file = Path(__file__).parent / "pmda-instructions.md"
|
|
if prompt_file.exists():
|
|
print(prompt_file.read_text(encoding="utf-8"))
|
|
return 0
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|