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:
|
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||||
|
|
||||||
from core import i18n
|
from core import i18n
|
||||||
from core import settingsManager
|
from core import settingsManager
|
||||||
from core import debug
|
from core import debug
|
||||||
|
|
||||||
class fenrir():
|
class fenrirManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
try:
|
try:
|
||||||
self.environment = settingsManager.settingsManager().initFenrirConfig()
|
self.environment = settingsManager.settingsManager().initFenrirConfig()
|
@ -10,10 +10,10 @@ import __main__
|
|||||||
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||||
|
|
||||||
import fenrir
|
from core import fenrirManager
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
app = fenrir.fenrir()
|
app = fenrirManager.fenrirManager()
|
||||||
app.proceed()
|
app.proceed()
|
||||||
del app
|
del app
|
||||||
|
|
||||||
|
@ -10,13 +10,13 @@ import __main__
|
|||||||
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
||||||
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||||
|
|
||||||
import fenrir
|
from core import fenrirManager
|
||||||
from daemonize import Daemonize
|
from daemonize import Daemonize
|
||||||
|
|
||||||
pidFile = "/run/fenrir.pid"
|
pidFile = "/run/fenrir.pid"
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
app = fenrir.fenrir()
|
app = fenrirManager.fenrirManager()
|
||||||
app.proceed()
|
app.proceed()
|
||||||
del app
|
del app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user