4 # Copyright (c) 2016-2020 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
5 # published under MIT-License
7 # This is started by the init script.
16 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "core")))
17 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "modules")))
20 if len(sys.argv) == 1:
21 config = importlib.import_module("config")
23 sys.argv[1] = re.sub(".py$", "", sys.argv[1])
24 config = importlib.import_module(sys.argv[1])