mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-21 09:31:40 -07:00
Moving from relative imports to absolute to enable poetry run python data-pipeline/application.py [command] (#476)
This commit is contained in:
parent
45a8b1c026
commit
9d962eb5d9
3 changed files with 14 additions and 8 deletions
|
@ -7,7 +7,7 @@ from pathlib import Path
|
|||
import requests
|
||||
import urllib3
|
||||
|
||||
from .config import settings
|
||||
from data_pipeline.config import settings
|
||||
|
||||
|
||||
def get_module_logger(module_name: str) -> logging.Logger:
|
||||
|
@ -97,7 +97,10 @@ def remove_all_dirs_from_dir(dir_path: Path) -> None:
|
|||
|
||||
|
||||
def unzip_file_from_url(
|
||||
file_url: str, download_path: Path, unzipped_file_path: Path, verify: bool = False,
|
||||
file_url: str,
|
||||
download_path: Path,
|
||||
unzipped_file_path: Path,
|
||||
verify: bool = False,
|
||||
) -> None:
|
||||
"""Downloads a zip file from a remote URL location and unzips it in a specific directory, removing the temporary file after
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue