https://bugzilla.wikimedia.org/show_bug.cgi?id=72290
Fabian CommodoreFabianus@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |CommodoreFabianus@gmx.de
--- Comment #2 from Fabian CommodoreFabianus@gmx.de --- (In reply to Mpaa from comment #1)
Note that in you example, it also fails even if the directory exists as -dir: comes before the expected script name.
python pwb.py -dir:~/.pywikibot version Traceback (most recent call last): File "pwb.py", line 166, in <module> if len(sys.argv) > 1: OSError: -dir:~/.pywikibot.py not found! <type 'exceptions.OSError'>
This is 'intentional'. The first parameter after 'pwb.py' MUST be the script you want to execute. Similar to how 'commit' must be directly after 'git' but '--amend' and '-a' after that can be swapped as you like.