Skip to content

Commit

Permalink
Merge pull request #1134 from severinsimmler/master
Browse files Browse the repository at this point in the history
Use $HOME instead of ~ for cache_root
  • Loading branch information
Alan Akbik authored Sep 20, 2019
2 parents 984c5a9 + 5d98102 commit 9904842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flair/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import torch
import os
from pathlib import Path

# global variable: cache_root
cache_root = os.path.expanduser(os.path.join("~", ".flair"))
cache_root = Path(Path.home(), ".flair")

# global variable: device
device = None
Expand Down

0 comments on commit 9904842

Please sign in to comment.