Skip to content

Commit

Permalink
Rename environment variables to have SLACK_MOCK_SERVER prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
  • Loading branch information
ygalblum committed Jul 8, 2024
1 parent 0f5b6ef commit 33c7fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slack_server_mock/settings/settings_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

logger = logging.getLogger(__name__)

_settings_folder = os.environ.get("KNOWLEDGE_BASE_SETTINGS_FOLDER", PROJECT_ROOT_PATH)
_settings_folder = os.environ.get("SLACK_MOCK_SERVER_SETTINGS_FOLDER", PROJECT_ROOT_PATH)

# if running in unittest, use the test profile
_test_profile = ["test"] if "tests.fixtures" in sys.modules else []

# Calculate the additional profiles from the environment variable
_additional_profiles = [
item.strip()
for item in os.environ.get("KNOWLEDGE_BASE_PROFILES", "").split(",")
for item in os.environ.get("SLACK_MOCK_SERVER_PROFILES", "").split(",")
if item.strip()
]

Expand Down

0 comments on commit 33c7fd1

Please sign in to comment.