Hmmm.
I was reading through that code earlier today, and I assumed I was just in the
wrong place. I got as far as:
>exec(compile(f.read(), _filename, 'exec'), _exec_globals)
and paused. I had been wondering about how user-config.py was getting
imported, since that's not a valid module na
Hi Roy,this is a global option which is handled by config.py directly by reading from sys.argv but does not remove it from that list.To remove it you can use the pwb.py wrapper like pwb
; Von: Bináris
> Gesendet: 24.02.2023 04:27
> An: Pywikibot discussion list
> Betreff: [pywikibot] Re: Multiple users in user-config.py?
>
>
>
> Roy Smith mailto:r...@panix.com>> ezt írta (időpont: 2023.
> febr. 24., P, 0:42):
> My bot needs to b
: 24.02.2023 04:27An: Pywikibot discussion list Betreff: [pywikibot] Re: Multiple users in user-config.py? Roy Smith <r...@panix.com> ezt írta (időpont: 2023. febr. 24., P, 0:42):My bot needs to be able to run as either of two different accounts depending on the task. DYKToolsBot for most
Creating a OauthLoginManager directly isn't working.
> site = Site('wikipedia:test', user='RoySmith')
> manager = OauthLoginManager(consumer_secret, site, consumer_token)
with PYWIKIBOT_NO_USER_CONFIG=1
gets me
> user-config.py cannot be loaded.
> family and mylang are not set.
> Defaulting to
Roy Smith ezt írta (időpont: 2023. febr. 24., P, 0:42):
> My bot needs to be able to run as either of two different accounts
> depending on the task. DYKToolsBot for most things, DYKToolsAdminBot for
> specific tasks that need admin rights. How do I do this?
>
I just got up to quickly wirite s