fenrir.py to core.fenrirManager.py to make things more clear

This commit is contained in:
chrys 2017-03-25 03:07:03 +01:00
parent 88b67100f2
commit 89170648a3
3 changed files with 6 additions and 5 deletions

View File

@ -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()

View File

@ -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

View File

@ -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