Skip to content

Commit 0fd10e6

Browse files
authored
normalize pathnames to fix issue 1830 (#1831)
Thank you @algat! And thanks @mthrok for the review!
1 parent 2a8e6b5 commit 0fd10e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/speech_command_classification_with_torchaudio_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, subset: str = None):
7979
def load_list(filename):
8080
filepath = os.path.join(self._path, filename)
8181
with open(filepath) as fileobj:
82-
return [os.path.join(self._path, line.strip()) for line in fileobj]
82+
return [os.path.normpath(os.path.join(self._path, line.strip())) for line in fileobj]
8383

8484
if subset == "validation":
8585
self._walker = load_list("validation_list.txt")

0 commit comments

Comments
 (0)