Skip to content

Commit 431d1d7

Browse files
committed
Changed to use os.path.join()
1 parent 1a2aa6e commit 431d1d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cifar10.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
import numpy as np
3636
import pickle
37+
import os
3738
import download
3839
from dataset import one_hot_encoded
3940

@@ -86,7 +87,7 @@ def _get_file_path(filename=""):
8687
If filename=="" then return the directory of the files.
8788
"""
8889

89-
return data_path + "cifar-10-batches-py/" + filename
90+
return os.path.join(data_path, "cifar-10-batches-py/", filename)
9091

9192

9293
def _unpickle(filename):

0 commit comments

Comments
 (0)