Skip to content

Commit

Permalink
Merge branch 'PLAT-276-add-oem-mode-endpoint' into oem-mode-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Apr 10, 2024
2 parents dd11ffd + 43585eb commit da093a8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions system-server/system_server/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
@lru_cache(maxsize=1)
def get_settings() -> "SystemServerSettings":
"""Get the settings."""
update_from_dotenv()
return SystemServerSettings()


def update_from_dotenv() -> None:
"""Get the location of the settings file."""
env = Environment().dot_env_path
if env:
load_dotenv(env)

# Update the systemServer settings from env file
return SystemServerSettings(_env_file=env)


class Environment(BaseSettings):
"""Environment related settings."""
Expand Down

0 comments on commit da093a8

Please sign in to comment.