| Dvorapa added a comment. |
In T101829#4213204, @Xqt wrote:In T101829#4212594, @Dvorapa wrote:Still reproducible
Could you explain. Sorry I've no glue what is the problem. Seems a Linux issue.
I could reproduce it both on Toolforge and on my PC (Linux) too. Steps to reproduce:
- Open a command line (terminal)
- Navigate to the whatever directory, but not pywikibot directory (for example cd Downloads)
- Run pywikibot script (here pwb.py login) using absolute path (from root; /............/pwb.py login)
- If there is no user config file, it tries to call generate_user_files from the directory you are currently in (current working directory - Downloads), not in the directory where pwb.py is located (/.........../pwb.py).
Not sure if this is the only case or there are more cases like that. Basically the title of this task says: Make pywikibot work independently on current working directory, but better would be: Don't assume pywikibot is launched from its directory.
TASK DETAIL
EMAIL PREFERENCES
To: Dvorapa
Cc: Dvorapa, Xqt, XZise, pywikibot-bugs-list, valhallasw, Aklapper, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Magul, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
Cc: Dvorapa, Xqt, XZise, pywikibot-bugs-list, valhallasw, Aklapper, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Magul, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
