Commit 74a47acc authored by Romain Bignon's avatar Romain Bignon

add 'absolute_import' pragma in all scripts

That's because of the 'weboob' script which can be considered as a
module
parent e96ec1fe
......@@ -19,7 +19,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobank import Boobank
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobathon import Boobathon
......
......@@ -19,6 +19,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobcoming import Boobcoming
if __name__ == '__main__':
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobill import Boobill
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.booblyrics import Booblyrics
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobmsg import Boobmsg
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobooks import Boobooks
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobsize import Boobsize
......
......@@ -18,6 +18,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.boobtracker import BoobTracker
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.cineoob import Cineoob
......
......@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
from __future__ import absolute_import
from weboob.applications.comparoob import Comparoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.cookboob import Cookboob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.flatboob import Flatboob
......
......@@ -18,6 +18,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.galleroob import Galleroob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.geolooc import Geolooc
......
......@@ -19,6 +19,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.handjoob import Handjoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.havedate import HaveDate
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.masstransit import Masstransit
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.monboob import Monboob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.parceloob import Parceloob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.pastoob import Pastoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qbooblyrics import QBooblyrics
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qboobmsg import QBoobMsg
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qcineoob import QCineoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qcookboob import QCookboob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qflatboob import QFlatBoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qhandjoob import QHandJoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qhavedate import QHaveDate
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qvideoob import QVideoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qwebcontentedit import QWebContentEdit
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.radioob import Radioob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.shopoob import Shopoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.suboob import Suboob
......
......@@ -19,6 +19,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.translaboob import Translaboob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.traveloob import Traveloob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.videoob import Videoob
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.webcontentedit import WebContentEdit
......
......@@ -3,7 +3,7 @@
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
# Copyright(C) 2009-2011 Romain Bignon
# Copyright(C) 2009-2017 Romain Bignon
#
# This file is part of weboob.
#
......@@ -20,6 +20,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
import re
import os
import sys
......@@ -32,12 +34,19 @@ from weboob.tools.ordereddict import OrderedDict
from weboob.tools.application.console import ConsoleApplication
__all__ = ['Weboob']
class Weboob(ConsoleApplication):
APPNAME = 'weboob'
VERSION = '1.2'
COPYRIGHT = 'Copyright(C) 2010-YEAR The Weboob Team'
DESCRIPTION = "This is a console script to launch weboob applications,"
SHORT_DESCRIPTION = "launch weboob applications"
UPDATE_DAYS_DELAY = 20
def __init__(self):
super(Weboob, self).__init__()
def main(self):
self.update()
capApplicationDict = self.init_CapApplicationDict()
......@@ -156,6 +165,6 @@ class Weboob(ConsoleApplication):
if __name__ == '__main__':
try:
Weboob()
Weboob().main()
except KeyboardInterrupt:
print('')
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.weboobcli import WeboobCli
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.weboobcfg import WeboobCfg
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.qweboobcfg import QWeboobCfg
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.weboobdebug import WeboobDebug
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.weboobrepos import WeboobRepos
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.weboorrents import Weboorrents
......
......@@ -20,6 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from weboob.applications.wetboobs import WetBoobs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment