Skip to content

Commit

Permalink
bugfix: macos model_stati_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
w-okada committed Dec 2, 2023
1 parent 06b8cf7 commit afb13bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/restapi/MMVC_Rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def get_instance(
)
app_fastapi.mount("/tmp", StaticFiles(directory=f"{TMP_DIR}"), name="static")
app_fastapi.mount("/upload_dir", StaticFiles(directory=f"{UPLOAD_DIR}"), name="static")
app_fastapi.mount("/model_dir_static", StaticFiles(directory=f"{MODEL_DIR_STATIC}"), name="static")
try:
app_fastapi.mount("/model_dir_static", StaticFiles(directory=f"{MODEL_DIR_STATIC}"), name="static")
except Exception as e:
print("Locating model_dir_static failed", e)

if sys.platform.startswith("darwin"):
p1 = os.path.dirname(sys._MEIPASS)
Expand Down

0 comments on commit afb13bf

Please sign in to comment.