Skip to content

Commit

Permalink
Merge commit 'f1d4b4fce1969f1fdbd77d89e0fda4a48f2ba0ca' into show-venv2
Browse files Browse the repository at this point in the history
# Conflicts:
#	bmds_ui/desktop/actions.py
  • Loading branch information
shapiromatron committed Nov 12, 2024
2 parents 03c9d38 + f1d4b4f commit 2daebda
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bmds_ui/desktop/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@


def sync_persistent_data():
"""Sync persistent data to database and static file path. We do this every time a database
is created or an application starts, to make sure application state is consistent with files."""
"""Sync persistent data to database and static file path.
We do this every time a database is created or an application starts, to make sure application
state is consistent with files.
"""
call_command("collectstatic", interactive=False, verbosity=3, stdout=stream, stderr=stream)
call_command("migrate", interactive=False, verbosity=3, stdout=stream, stderr=stream)

Expand Down Expand Up @@ -175,7 +178,8 @@ def render_template(template_text: str, context: dict) -> str:
def get_activate_script() -> tuple[str, str]:
"""Try to determine how to activate the environment.
First check if we're in a python virtual environment with an activate script, next try to determine if we're in a conda environment. If neither, return unknown.
First check if we're in a python virtual environment with an activate script, next try to
determine if we're in a conda environment. If neither, return unknown.
Returns:
tuple[str, str]: (environment_type {venv, conda, unknown}, path/name)
Expand Down

0 comments on commit 2daebda

Please sign in to comment.