Skip to content

Commit

Permalink
fixing load dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
rsjr committed Oct 11, 2023
1 parent 619af76 commit 9d91274
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [5.4.2]

### Fixed

* Fix on find_dotenv call

## [5.4.1]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion cognite/extractorutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
Cognite extractor utils is a Python package that simplifies the development of new extractors.
"""

__version__ = "5.4.1"
__version__ = "5.4.2"
from .base import Extractor
2 changes: 1 addition & 1 deletion cognite/extractorutils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def __enter__(self) -> "Extractor":

if str(os.getenv("COGNITE_FUNCTION_RUNTIME", False)).lower() != "true":
# Environment Variables
env_file_path = find_dotenv()
env_file_path = find_dotenv(usecwd=True)
if env_file_path:
load_dotenv(dotenv_path=env_file_path, override=True)
dotenv_message = f"Successfully ingested environment variables from {env_file_path}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cognite-extractor-utils"
version = "5.4.1"
version = "5.4.2"
description = "Utilities for easier development of extractors for CDF"
authors = ["Mathias Lohne <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 9d91274

Please sign in to comment.