Commit ccd8bdbd authored by David Trattnig's avatar David Trattnig
Browse files

Localized configuration for faster testing cycles and allowance of multiple engines.

parent f95156e2
......@@ -30,6 +30,7 @@ import signal
import logging
import unittest
from pathlib import Path
from flask import request, render_template, Flask, Response
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.ext.declarative import declarative_base
......@@ -45,8 +46,7 @@ def get_config_file():
idx = sys.argv.index("--config-file")
return sys.argv[idx + 1]
else:
return "/etc/aura/engine.ini"
return "%s/configuration/engine.ini" % Path(__file__).parent.absolute()
def get_database_uri():
db_name = config.get("db_name")
......
......@@ -24,7 +24,7 @@
# READ INI FILE
%include "readini.liq"
ini = read_ini("/etc/aura/engine.ini")
ini = read_ini("../../configuration/engine.ini")
# TELNET SETTINGS
set("server.telnet", true)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment