elif sys.platform == "win32":
base = os.getenv("APPDATA", os.path.expanduser("~/AppData/Local"))
elif os.name == "posix":
base = os.getenv("XDG_CACHE_HOME", os.path.expanduser("~/.cache"))
else:
base = os.path.expanduser("~/.cache")
base = os.path.join(base, "Orange", Orange.__version__)
if sys.platform == "win32":
// On Windows cache and data dir are the same.
// Microsoft suggest using a Cache subdirectory
return os.path.join(base, "Cache")
else:
return base