Skip to content

Commit

Permalink
Use better heuristic for running core arches directly re #11660
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Dec 19, 2024
1 parent cbd60c1 commit feea889
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arches/settings_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ def generate_frontend_configuration():
"WEBPACK_DEVELOPMENT_SERVER_PORT": settings.WEBPACK_DEVELOPMENT_SERVER_PORT,
}

if settings.APP_NAME == "Arches":
if str(Path(app_root_path).parent) == root_dir_path:
# Running core arches directly without a project, e.g.:
# app_root_path: arches/app
# root_dir_path: arches
base_path = root_dir_path
else:
base_path = app_root_path
Expand Down

0 comments on commit feea889

Please sign in to comment.