alessandro trinca tornidor
commited on
Commit
•
fb648a1
1
Parent(s):
d33fb86
[feat] fix PROJECT_ROOT_FOLDER not handled as a Path
Browse files- samgis/__init__.py +1 -1
samgis/__init__.py
CHANGED
@@ -7,7 +7,7 @@ from pathlib import Path
|
|
7 |
from samgis.utilities.constants import SERVICE_NAME
|
8 |
|
9 |
ROOT = Path(globals().get("__file__", "./_")).absolute().parent.parent
|
10 |
-
PROJECT_ROOT_FOLDER = os.getenv("PROJECT_ROOT_FOLDER", ROOT)
|
11 |
MODEL_FOLDER = Path(PROJECT_ROOT_FOLDER / "machine_learning_models")
|
12 |
|
13 |
IS_AWS_LAMBDA = bool(os.getenv("IS_AWS_LAMBDA", ""))
|
|
|
7 |
from samgis.utilities.constants import SERVICE_NAME
|
8 |
|
9 |
ROOT = Path(globals().get("__file__", "./_")).absolute().parent.parent
|
10 |
+
PROJECT_ROOT_FOLDER = Path(os.getenv("PROJECT_ROOT_FOLDER", ROOT))
|
11 |
MODEL_FOLDER = Path(PROJECT_ROOT_FOLDER / "machine_learning_models")
|
12 |
|
13 |
IS_AWS_LAMBDA = bool(os.getenv("IS_AWS_LAMBDA", ""))
|