When installing weboob in $HOME, the weboob base modules (weboob.browser...)
are installed in $HOME/.local/lib/python2.7/site-packages/... (see PEP-370).
When running weboob from the source directory with tools/local_run.sh, those
base modules are read from $HOME/.local instead of the source directory.
Passing the "-s" option to python makes it ignore $HOME/.local and read the
base modules from the source directory.
Signed-off-by: Matthieu Weber <mweber+weboob@free.fr>
The user may now use conditions on durations (from the audio and the video
capabilities) in repl applications.
The documentation has been updated to take this change into account.
autopep8 -a -r -i --select E711,E712,W601,W602,W603,W604,W690,E304,E401,E502 .
Also includes some manual reindentations (many are left after the print()
changes).
Manually checked, some modernizations not commited here.
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions
Also, the new tree for browser2 is:
weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters