| zhuyifei1999 claimed this task. zhuyifei1999 added a comment. |
In T188246#4005253, @MuhammadShuaib wrote:python pwb.py replace -fix:correct-ur -transcludes:Infobox_settlement -lang:ur -family:wikipedia -always
I assume this is tool khanamalumat.
Yes, I am sure.
I see three user-config.py-s:
04:54:52 0 ✓ zhuyifei1999@tools-bastion-02: ~$ ls -l /data/project/khanamalumat/{,compat/,core/}user-config.py
-rw-r--r-- 1 tools.khanamalumat tools.khanamalumat 1217 Feb 26 06:25 /data/project/khanamalumat/compat/user-config.py
-rw-r--r-- 1 tools.khanamalumat tools.khanamalumat 1217 Feb 26 06:20 /data/project/khanamalumat/core/user-config.py
-rw-r--r-- 1 nadwi tools.khanamalumat 1217 Feb 26 05:23 /data/project/khanamalumat/user-config.pyNote that when jsub executes a script it sets your current directory to your home directory unless otherwise specified. However, all these files are identical, so something weird is going on. (Also please see T188323)
This issue is indeed reproduce-able:
04:52:03 0 ✓ zhuyifei1999@tools-bastion-02: /data/project/khanamalumat$ python -i core/pwb.py No handlers could be found for logger "pywiki" Wrapper script to use Pywikibot in 'directory' mode. Run scripts using: python pwb.py <name_of_script> <options> and it will use the package directory to store all user files, will fix up search paths so the package does not need to be installed, etc. >>> import pywikibot >>> pywikibot.config.family u'test' >>>Investigating
TASK DETAIL
EMAIL PREFERENCES
To: zhuyifei1999
Cc: Dalba, zhuyifei1999, matej_suchanek, Aklapper, pywikibot-bugs-list, MuhammadShuaib, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
Cc: Dalba, zhuyifei1999, matej_suchanek, Aklapper, pywikibot-bugs-list, MuhammadShuaib, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
