Hello!
I set up my bot on Labs and use shared repo of pywikibot. That's why I am interested in 2 options:
1) how can I define which file should be used as user-config.py in the script's running parameters? For example, I want to run "redirect.py br -delete -always" with config of sysop bot and "redirect.py do -always" with usual bot account, that's why I want to create 2 different configs and define them in parameters. I haven't such functions in global parameters but I am quite sure that this was possible before.
2) I want to run my custom script but use shared repo of framework: for example, to run delinker.py from my home location but use wikipedia.py, etc. from shared repo not to clone frameworks on Labs. Is it possible, too?
Thanks, rubin16
Hi Rubin,
You mentioned "wikipedia.py" in your email; are you using compat for these tasks?
On Sun, Nov 2, 2014 at 3:46 PM, rubin.happy rubin.happy@gmail.com wrote:
Hello!
I set up my bot on Labs and use shared repo of pywikibot. That's why I am interested in 2 options:
- how can I define which file should be used as user-config.py in the
script's running parameters? For example, I want to run "redirect.py br -delete -always" with config of sysop bot and "redirect.py do -always" with usual bot account, that's why I want to create 2 different configs and define them in parameters. I haven't such functions in global parameters but I am quite sure that this was possible before.
- I want to run my custom script but use shared repo of framework: for
example, to run delinker.py from my home location but use wikipedia.py, etc. from shared repo not to clone frameworks on Labs. Is it possible, too?
Thanks, rubin16
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Nope, I am using core, it's just an old habit left from years when we used compat :)
rubin
2014-11-02 11:56 GMT+03:00 John Mark Vandenberg jayvdb@gmail.com:
Hi Rubin,
You mentioned "wikipedia.py" in your email; are you using compat for these tasks?
On Sun, Nov 2, 2014 at 3:46 PM, rubin.happy rubin.happy@gmail.com wrote:
Hello!
I set up my bot on Labs and use shared repo of pywikibot. That's why I am interested in 2 options:
- how can I define which file should be used as user-config.py in the
script's running parameters? For example, I want to run "redirect.py br -delete -always" with config of sysop bot and "redirect.py do -always"
with
usual bot account, that's why I want to create 2 different configs and define them in parameters. I haven't such functions in global parameters but I am quite sure that
this
was possible before.
- I want to run my custom script but use shared repo of framework: for
example, to run delinker.py from my home location but use wikipedia.py,
etc.
from shared repo not to clone frameworks on Labs. Is it possible, too?
Thanks, rubin16
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- John Vandenberg
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 2 November 2014 09:46, rubin.happy rubin.happy@gmail.com wrote:
- how can I define which file should be used as user-config.py in the
script's running parameters? For example, I want to run "redirect.py br -delete -always" with config of sysop bot and "redirect.py do -always" with usual bot account, that's why I want to create 2 different configs and define them in parameters. I haven't such functions in global parameters but I am quite sure that this was possible before.
set the environment variable PYWIKIBOT2_DIR=/some/path
- I want to run my custom script but use shared repo of framework: for
example, to run delinker.py from my home location but use wikipedia.py, etc. from shared repo not to clone frameworks on Labs. Is it possible, too?
If you follow the 'shared pywikibot' part of https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Pywikibot, this should work.
Thanks!
rubin 02 нояб. 2014 г. 16:29 пользователь "Merlijn van Deen" valhallasw@arctus.nl написал:
On 2 November 2014 09:46, rubin.happy rubin.happy@gmail.com wrote:
- how can I define which file should be used as user-config.py in the
script's running parameters? For example, I want to run "redirect.py br -delete -always" with config of sysop bot and "redirect.py do -always"
with
usual bot account, that's why I want to create 2 different configs and define them in parameters. I haven't such functions in global parameters but I am quite sure that
this
was possible before.
set the environment variable PYWIKIBOT2_DIR=/some/path
- I want to run my custom script but use shared repo of framework: for
example, to run delinker.py from my home location but use wikipedia.py,
etc.
from shared repo not to clone frameworks on Labs. Is it possible, too?
If you follow the 'shared pywikibot' part of https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Pywikibot, this should work.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org