fenrir.py to core.fenrirManager.py to make things more clear
This commit is contained in:
parent
88b67100f2
commit
89170648a3
@ -9,11 +9,12 @@ import __main__
|
||||
|
||||
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||
|
||||
from core import i18n
|
||||
from core import settingsManager
|
||||
from core import debug
|
||||
|
||||
class fenrir():
|
||||
class fenrirManager():
|
||||
def __init__(self):
|
||||
try:
|
||||
self.environment = settingsManager.settingsManager().initFenrirConfig()
|
@ -10,10 +10,10 @@ import __main__
|
||||
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||
|
||||
import fenrir
|
||||
from core import fenrirManager
|
||||
|
||||
def main():
|
||||
app = fenrir.fenrir()
|
||||
app = fenrirManager.fenrirManager()
|
||||
app.proceed()
|
||||
del app
|
||||
|
||||
|
@ -10,13 +10,13 @@ import __main__
|
||||
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||
|
||||
import fenrir
|
||||
from core import fenrirManager
|
||||
from daemonize import Daemonize
|
||||
|
||||
pidFile = "/run/fenrir.pid"
|
||||
|
||||
def main():
|
||||
app = fenrir.fenrir()
|
||||
app = fenrirManager.fenrirManager()
|
||||
app.proceed()
|
||||
del app
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user