We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ca227c commit ce12f16Copy full SHA for ce12f16
1 file changed
server/app.py
@@ -15,7 +15,7 @@
15
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16
17
import logging
18
-import os
+from pathlib import Path
19
20
from flask import Flask, request, send_file, send_from_directory
21
from markupsafe import escape
@@ -100,7 +100,7 @@ def pof_route_html():
100
101
@app.get("/favicon.ico")
102
def favicon():
103
- return send_from_directory(os.path.join(app.root_path, "static"), "favicon.png")
+ return send_from_directory(Path(app.root_path) / "static", "favicon.png")
104
105
106
if __name__ == "__main__":
0 commit comments