Skip to content

Commit

Permalink
better path compatibility with notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
gear committed Jan 28, 2020
1 parent e26e8ae commit 81878f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from time import perf_counter
from torch.utils import data

dataf = os.path.expanduser("./data/")
dataf = os.path.expanduser("{}/data/".format(os.path.dirname(__file__)))

def parse_index_file(filename):
"""Parse index file."""
Expand Down

0 comments on commit 81878f6

Please sign in to comment.