You may also omit the script path, it is default. And the .py ending of the script may also be omitted. Just call pwb.py xxx
followed by any options behind that.

Best
xqt

Von: John Mark Vandenberg
Gesendet: 03.06.2014 06:05
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] Deprecation of compat

On Mon, Jun 2, 2014 at 8:00 PM, Amir Ladsgroup <ladsgroup@gmail.com> wrote:
> Core has one million advantages on compat but easy-installation is not one
> of them, a week ago I was trying to teach some bot operators to migrate to
> core and there were three main problems:
>
> 1- core suggests people to make the user-config in a .pywikibot folder
>  and people don't like this and changing it isn't easy (for example if you
> want to set it as current folder, like compat, which is a common act because
> people use several accounts and they need several pywikibot folders with
> separated user-config and the system doesn't let you to make a file in
> existing director, try doing this)

This part of the startup is quite problematic, as the 'config
directory' has three different sets of logic
1. pwb.py
2. generate_user_files.py get_base_dir()
3. pywikibot/config2.py _get_base_dir()

https://gerrit.wikimedia.org/r/#/c/87893/ tries to copy the logic in
config2.py into pwb.py, but really we need one function that is reused
in all three cases.

> 2- people don't know what command is best for installation:
> python pwb.py
> python generate_user_files.py
> python setup.py install
> python ez_setup.py

IMO we should promote 'python pwb.py' as the way that people start using pywiki.

> 3- There is an extra external needed (httplib2) and there is no
> documentation (in files) at all about them and how we can install them, I
> learned about them by experience and this command won't work: (my friend
> told me, I haven't checked it yet)
>
> git submodule update --init

I quickly tested this , and it appears to be working correctly when
used with 'python pwb.py scripts/xxxx.py'

--
John Vandenberg

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l