Skip to content

Commit 9c9a70f

Browse files
committed
add absolute path for dot env config file
1 parent 11f99b3 commit 9c9a70f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jinja_tree/infra/adapters/context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class DotEnvContextConfig(DataClassJsonMixin):
4949
)
5050
dataclass_json_config = {"undefined": Undefined.RAISE} # noqa: RUF012
5151

52+
def __post_init__(self):
53+
self.path = os.path.abspath(self.path)
54+
5255

5356
class DotEnvContextAdapter(ContextPort):
5457
def __init__(self, config: Config, plugin_config: Dict[str, Any]):

0 commit comments

Comments
 (0)