]> OzVa Git service - conf-dialer/commitdiff
added dialer_path
authorMax Value <greenwoodw50@gmail.com>
Thu, 25 Dec 2025 22:27:43 +0000 (22:27 +0000)
committerMax Value <greenwoodw50@gmail.com>
Thu, 25 Dec 2025 22:27:43 +0000 (22:27 +0000)
Makefile
dialer.py

index 3aee85d9bf2a274ac3323ea2d445dc805f4543c6..77ed4290d4283c9c3b82d84cfdbd80dfbbab500e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 all : .venv/touchfile
-       .venv/bin/python -m flask --app dialer run
+       DIALER_PATH=. .venv/bin/python -m flask --app dialer run
 
 build : .venv/touchfile
        .venv/bin/python -m pip install .
index 38306f6d504fd8048ff52c7b30df95cb0d0a1875..ae0b153d86eb7805da4ae983bcf2747e65c90963 100755 (executable)
--- a/dialer.py
+++ b/dialer.py
@@ -14,6 +14,7 @@ import json
 import os
 
 app = Flask(__name__)
+app.root_path = os.environ["DIALER_PATH"]
 auth = HTTPBasicAuth()
 socketio = SocketIO(app)