Modified the configuration as a singleton, to simplify the creation of new elements
This commit is contained in:
parent
d4ed74ae5f
commit
4e6a269475
6 changed files with 25 additions and 14 deletions
|
|
@ -21,6 +21,14 @@ import os
|
|||
|
||||
class configuration:
|
||||
|
||||
current_configuration = None
|
||||
|
||||
@staticmethod
|
||||
def get_config():
|
||||
if configuration.current_configuration == None:
|
||||
configuration.current_configuration = configuration()
|
||||
return configuration.current_configuration
|
||||
|
||||
def __init__(self):
|
||||
|
||||
self.error = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue