reorganization of config management
This commit is contained in:
parent
d15365fe26
commit
29400eb185
9 changed files with 135 additions and 56 deletions
|
|
@ -25,11 +25,10 @@ from types import MethodType
|
|||
|
||||
from weboob import Weboob
|
||||
from weboob.capabilities.travel import ICapTravel
|
||||
from weboob.tools.application import BaseApplication
|
||||
from weboob.tools.application import ConsoleApplication
|
||||
|
||||
class Application(BaseApplication):
|
||||
class Travel(ConsoleApplication):
|
||||
APPNAME = 'travel'
|
||||
CONFIG = {}
|
||||
|
||||
def main(self, argv):
|
||||
self.weboob.load_modules(ICapTravel)
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
"""
|
||||
|
||||
import sys
|
||||
from weboob.frontends.travel import Application
|
||||
from weboob.frontends.travel import Travel
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = Application()
|
||||
sys.exit(app.main(sys.argv))
|
||||
Travel.run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue