Skip to content

Commit

Permalink
windows: use expanduser instread of os.environ["HOME"]
Browse files Browse the repository at this point in the history
windows machines don't seem to have HOME env. variable
  • Loading branch information
r9y9 committed Sep 15, 2021
1 parent bcee018 commit dddd0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttslearn/pretrained/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"v0.2.1": "https://github.com/r9y9/ttslearn/releases/download/v0.2.1",
}

DEFAULT_CACHE_DIR = join(os.environ["HOME"], ".cache", "ttslearn")
DEFAULT_CACHE_DIR = join(os.path.expanduser("~"), ".cache", "ttslearn")
CACHE_DIR = os.environ.get("TTSLEARN_CACHE_DIR", DEFAULT_CACHE_DIR)


Expand Down

0 comments on commit dddd0a1

Please # to comment.