Skip to content

Commit de65d8b

Browse files
committed
dont call abspath when opening cloud path
1 parent 1b6f57b commit de65d8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wfdb/io/record.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,9 @@ def rdrecord(
20272027
20282028
"""
20292029
dir_name, base_record_name = os.path.split(record_name)
2030-
dir_name = os.path.abspath(dir_name)
2030+
# Update the dir_name using abspath unless it is a cloud path
2031+
if not any(dir_name.startswith(proto) for proto in CLOUD_PROTOCOLS):
2032+
dir_name = os.path.abspath(dir_name)
20312033

20322034
# Read the header fields
20332035
if (pn_dir is not None) and ("." not in pn_dir):

0 commit comments

Comments
 (0)