Skip to content

Commit 04fe52c

Browse files
authored
Merge pull request #147 from salute-developers/feature/PNLP-7713_static_path_from_env
Feature/PNLP-7713: static path from env
2 parents 5a0b58b + 70a4e2d commit 04fe52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smart_kit/configs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_app_config(environment_variable=ENVIRONMENT_VARIABLE):
2323
app_config = os.getenv(environment_variable)
2424
app_config = importlib.import_module(app_config)
2525

26-
static_path = get_static_path(app_config.__file__)
26+
static_path = os.getenv("STATIC_PATH") or get_static_path(app_config.__file__)
2727
set_default(app_config, "STATIC_PATH", static_path)
2828
set_default(app_config, "CONFIGS_PATH", os.path.join(static_path, "./configs"))
2929
set_default(app_config, "SECRET_PATH", os.path.join(static_path, "./configs"))

0 commit comments

Comments
 (0)