Skip to content

Commit b585083

Browse files
authored
Fixes download fail on Windows #262
Replaces `os.sep` with `/` to indicate a URL and prevent issues on Windows machines since `os.sep` on Windows is '\'. Fixes #262.
1 parent c45329f commit b585083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def get_record_list(db_dir, records='all'):
278278
279279
"""
280280
# Full url PhysioNet database
281-
if os.sep not in db_dir:
281+
if '/' not in db_dir:
282282
db_url = posixpath.join(config.db_index_url, db_dir, record.get_version(db_dir))
283283
else:
284284
db_url = posixpath.join(config.db_index_url, db_dir)

0 commit comments

Comments
 (0)