add config file and 'optimizations' field to auto-start them at launch
This commit is contained in:
parent
a9364aa349
commit
0b7f310081
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ class HaveSex(PromptApplication):
|
||||||
VERSION = '1.0'
|
VERSION = '1.0'
|
||||||
COPYRIGHT = 'Copyright(C) 2010 Romain Bignon'
|
COPYRIGHT = 'Copyright(C) 2010 Romain Bignon'
|
||||||
STORAGE_FILENAME = 'dating.storage'
|
STORAGE_FILENAME = 'dating.storage'
|
||||||
|
CONFIG = {'optimizations': ''}
|
||||||
|
|
||||||
def main(self, argv):
|
def main(self, argv):
|
||||||
self.load_config()
|
self.load_config()
|
||||||
|
|
@ -40,6 +41,8 @@ class HaveSex(PromptApplication):
|
||||||
|
|
||||||
self.weboob.do('init_optimizations')
|
self.weboob.do('init_optimizations')
|
||||||
|
|
||||||
|
self.optims('Starting', 'start_optimization', self.config.get('optimizations').split(' '))
|
||||||
|
|
||||||
return self.loop()
|
return self.loop()
|
||||||
|
|
||||||
def split_id(self, id):
|
def split_id(self, id):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue