[FRONTEND] Don't use HOME envvar to get HOME (#1364)

Fixes https://github.com/pytorch/pytorch/issues/97076
This commit is contained in:
Edward Z. Yang
2023-03-18 13:39:58 -04:00
committed by GitHub
parent c9740f0870
commit 6d61a5ca23

View File

@@ -1420,7 +1420,7 @@ PyMODINIT_FUNC PyInit___triton_launcher(void) {{
def default_cache_dir():
return os.path.join(os.environ["HOME"], ".triton", "cache")
return os.path.join(Path.home(), ".triton", "cache")
class CacheManager: