Skip to content

Commit

Permalink
check dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Nov 2, 2024
1 parent 76d8017 commit 74f456a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mesop/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
raise MesopDeveloperException(
f"MESOP_APP_BASE_PATH must be an absolute path, but got {MESOP_APP_BASE_PATH} instead."
)
if not os.path.isdir(MESOP_APP_BASE_PATH):
raise MesopDeveloperException(
f"MESOP_APP_BASE_PATH is not a valid directory: {MESOP_APP_BASE_PATH}"
)
print(f"MESOP_APP_BASE_PATH set to {MESOP_APP_BASE_PATH}")


Expand Down

0 comments on commit 74f456a

Please sign in to comment.