Skip to content

Commit

Permalink
Changed to use os.path.join()
Browse files Browse the repository at this point in the history
  • Loading branch information
Hvass-Labs committed Oct 12, 2016
1 parent 1a2aa6e commit 431d1d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import numpy as np
import pickle
import os
import download
from dataset import one_hot_encoded

Expand Down Expand Up @@ -86,7 +87,7 @@ def _get_file_path(filename=""):
If filename=="" then return the directory of the files.
"""

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


def _unpickle(filename):
Expand Down

0 comments on commit 431d1d7

Please sign in to comment.