Skip to content

Commit 29ce6d2

Browse files
committed
Fixes download on Windows MIT-LCP#254
Fixes URL path error generated on Windows machines while trying to read and download certain content. Fixes MIT-LCP#254.
1 parent 4d4c354 commit 29ce6d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ def rdrecord(record_name, sampfrom=0, sampto=None, channels=None,
27382738

27392739
# Read the header fields
27402740
if (pn_dir is not None) and ('.' not in pn_dir):
2741-
dir_list = pn_dir.split(os.sep)
2741+
dir_list = pn_dir.split('/')
27422742
pn_dir = posixpath.join(dir_list[0], get_version(dir_list[0]), *dir_list[1:])
27432743

27442744
if record_name.endswith('.edf'):

0 commit comments

Comments
 (0)