From 61e5feb1c6a547c106c649938d8e6e19d73a9302 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Sun, 16 Jun 2024 10:45:18 -0400 Subject: [PATCH 1/2] Added for module imports --- utils/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 utils/__init__.py diff --git a/utils/__init__.py b/utils/__init__.py new file mode 100644 index 00000000..e69de29b From 63718a16df662eb5c08fafb31e85b41943e3e14e Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Sun, 16 Jun 2024 10:54:01 -0400 Subject: [PATCH 2/2] Added utils automatically to path --- ingestion/ingest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ingestion/ingest.py b/ingestion/ingest.py index 02e2a7ee..55d1151e 100644 --- a/ingestion/ingest.py +++ b/ingestion/ingest.py @@ -14,8 +14,10 @@ from shapefiles import download_hdx_boundaries from sqlalchemy import create_engine, text -# This is copied into Docker env -from utils.general import is_running_in_docker, read_integration_config +sys.path.append( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +) # noqa: E402 +from utils.general import is_running_in_docker, read_integration_config # noqa: E402 INTEGRATION_CONFIG = "ingestion.config"