Skip to content

Commit ce12f16

Browse files
committed
fix: server
1 parent 1ca227c commit ce12f16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

1717
import logging
18-
import os
18+
from pathlib import Path
1919

2020
from flask import Flask, request, send_file, send_from_directory
2121
from markupsafe import escape
@@ -100,7 +100,7 @@ def pof_route_html():
100100

101101
@app.get("/favicon.ico")
102102
def favicon():
103-
return send_from_directory(os.path.join(app.root_path, "static"), "favicon.png")
103+
return send_from_directory(Path(app.root_path) / "static", "favicon.png")
104104

105105

106106
if __name__ == "__main__":

0 commit comments

Comments
 (0)