Skip to content

Commit

Permalink
app_base
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Nov 8, 2024
1 parent a02824e commit 03e3867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion mesop/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
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}")


def get_app_base_path() -> str:
Expand Down
3 changes: 3 additions & 0 deletions mesop/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def configure_flask_app(
if env.EXPERIMENTAL_EDITOR_TOOLBAR_ENABLED:
logger.info("Experiment enabled: EXPERIMENTAL_EDITOR_TOOLBAR_ENABLED")

if env.MESOP_APP_BASE_PATH:
logger.info(f"MESOP_APP_BASE_PATH set to {env.MESOP_APP_BASE_PATH}")

static_folder = get_static_folder()
static_url_path = get_static_url_path()
if static_folder and static_url_path:
Expand Down

0 comments on commit 03e3867

Please sign in to comment.