Steps to replicate the issue:
- pip install pywikibot from git
- pwb touch -help (or any other script in ./scripts, ./scripts/userscripts, ./scripts/maintenance)
ERROR: touch.py not found! Misspelling?
What should have happened instead?:
pwb finds and executes the script like python3 pwb.py.
It finds scripts from ./pywikibot/scripts.
Installing scripts into a site-package instead of relying on the path should fix this.