Skip to content

Commit c4059c7

Browse files
committed
chore: update config file loading to use Path.open
1 parent 34288ef commit c4059c7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

setup.py

100644100755
File mode changed.

src/datapilot/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def load_config_from_file():
1818
return {}
1919

2020
try:
21-
with open(config_path) as f:
21+
with Path.open(config_path) as f:
2222
config = json.load(f)
2323
return config
2424
except (OSError, json.JSONDecodeError) as e:

0 commit comments

Comments
 (0)