We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109edd8 commit 1f310d7Copy full SHA for 1f310d7
pandas/io/common.py
@@ -1329,7 +1329,13 @@ def _resolve_local_path(path_str: str) -> Path:
1329
if is_platform_windows():
1330
if parsed.netloc:
1331
return Path(f"//{parsed.netloc}{unquote(parsed.path)}")
1332
- return Path(unquote(parsed.path.lstrip("/")))
+
1333
+ path = unquote(parsed.path)
1334
+ if path.startswith("\\") and not path.startswith("\\\\"):
1335
+ drive = os.path.splitdrive(os.getcwd())[0]
1336
+ return Path(drive + path)
1337
1338
+ return Path(path)
1339
return Path(unquote(parsed.path))
1340
1341
0 commit comments