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'
|
||||
COPYRIGHT = 'Copyright(C) 2010 Romain Bignon'
|
||||
STORAGE_FILENAME = 'dating.storage'
|
||||
CONFIG = {'optimizations': ''}
|
||||
|
||||
def main(self, argv):
|
||||
self.load_config()
|
||||
|
|
@ -40,6 +41,8 @@ class HaveSex(PromptApplication):
|
|||
|
||||
self.weboob.do('init_optimizations')
|
||||
|
||||
self.optims('Starting', 'start_optimization', self.config.get('optimizations').split(' '))
|
||||
|
||||
return self.loop()
|
||||
|
||||
def split_id(self, id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue