Edgars2007 added a comment.

So if you keep your script names unique and register any folder in this config, I think you will find this useful.

Yes, I know about user_script_paths. Nice thing, but not exactly solution to this "problem".
a) as I said, I could have same-titled scripts in each folder, that I want to use in cmd. For example, I have import script folders for each thing (website), and I name them 'import.py'
b) not so very big issue, but performance. As I already said, I may have 1000 projects. Each time I run the script, it could have to go trough all those 1000 folders till it finds rights project.
c) maintaining user_script_paths if I have many projects would be hell :)

You can pass the full path of the file to pwb.py, so python pwb.py projects/wikidatafix/fix_everything_in_wikidata.py (or pwb.py projects\wikidatafix\fix_everything_in_wikidata.py on Windows) should work.

Your solution is quite long :) I may have wikidatafix folder somewhere deeper in path. Yes, I know, what I said in description, but I could have it like that. Writing it everytime (not a simple copy-paste)... Also hell :)


TASK DETAIL
https://phabricator.wikimedia.org/T187737

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Edgars2007
Cc: valhallasw, Aklapper, pywikibot-bugs-list, matej_suchanek, Edgars2007
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to