-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-app-clean.patch
More file actions
26 lines (26 loc) · 1019 Bytes
/
Copy pathfix-app-clean.patch
File metadata and controls
26 lines (26 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/windturbine/app.py b/src/windturbine/app.py
--- a/src/windturbine/app.py
+++ b/src/windturbine/app.py
@@ -36,7 +36,14 @@
else:
# default to package templates path (will raise TemplateNotFound later if missing)
TEMPLATE_FOLDER = PACKAGE_TEMPLATES
- logger.warning("No templates directory found in package or repo root; expected at one of: %s or %s", PACKAGE_TEMPLATES, REPO_TEMPLATES)
+ logger.warning(
+ "No templates directory found in package or repo root; "
+ "expected at one of: %s or %s",
+ PACKAGE_TEMPLATES,
+ REPO_TEMPLATES,
+ )
+
@@ -165,7 +172,17 @@
if __name__ == "__main__":
- logger.info("Starting app on port %s (debug=%s). MODEL_PATH=%s", port, debug, os.environ.get("MODEL_PATH", DEFAULT_MODEL_PATH))
+ logger.info(
+ "Starting app on port %s (debug=%s). MODEL_PATH=%s",
+ port,
+ debug,
+ os.environ.get("MODEL_PATH", DEFAULT_MODEL_PATH),
+ )
+
app.run(host="0.0.0.0", port=port, debug=debug)