Skip to content

Commit 6958319

Browse files
defaulting target_path to none to allow check for target_path in config file
1 parent 398b34a commit 6958319

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

elementary/config/config.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
project_dir: Optional[str] = None,
4747
profile_target: Optional[str] = None,
4848
project_profile_target: Optional[str] = None,
49-
target_path: str = DEFAULT_TARGET_PATH,
49+
target_path: Optional[str] = None,
5050
dbt_quoting: Optional[bool] = None,
5151
update_bucket_website: Optional[bool] = None,
5252
slack_webhook: Optional[str] = None,
@@ -93,10 +93,15 @@ def __init__(
9393
self.target_dir = self._first_not_none(
9494
target_path,
9595
config.get("target-path"),
96-
os.getcwd(),
96+
self.DEFAULT_TARGET_PATH,
9797
)
98+
print(target_path)
99+
print(config)
100+
print(self.DEFAULT_TARGET_PATH)
101+
print(self.target_dir)
98102
os.makedirs(os.path.abspath(self.target_dir), exist_ok=True)
99-
os.environ["DBT_LOG_PATH"] = os.path.abspath(target_path)
103+
104+
os.environ["DBT_LOG_PATH"] = os.path.abspath(self.target_dir)
100105

101106
self.update_bucket_website = self._first_not_none(
102107
update_bucket_website,

0 commit comments

Comments
 (0)