We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6945a04 commit 8925c70Copy full SHA for 8925c70
src/sagemaker/_studio.py
@@ -65,7 +65,9 @@ def _find_config(working_dir=None):
65
wd = Path(working_dir) if working_dir else Path.cwd()
66
67
path = None
68
- while path is None and not wd.match("/"):
+
69
+ root = Path(wd.anchor) # Properly get the root of the current working directory for both Windows and Unix-like systems
70
+ while path is None and wd != root:
71
candidate = wd / STUDIO_PROJECT_CONFIG
72
if Path.exists(candidate):
73
path = candidate
0 commit comments