Merge pull request #684 from Digitalisx/fix/constants

Fix operating system comparison syntax for create cache path constant.
This commit is contained in:
ikelos
2022-03-22 23:07:49 +00:00
committed by GitHub
+1 -1
View File
@@ -63,7 +63,7 @@ LOGLEVEL_VVVV = 6
CACHE_PATH = os.path.join(os.path.expanduser("~"), ".cache", "volatility3")
"""Default path to store cached data"""
if sys.platform == 'windows':
if sys.platform == 'win32':
CACHE_PATH = os.path.join(os.environ.get("APPDATA", os.path.expanduser("~")), "volatility3")
os.makedirs(CACHE_PATH, exist_ok = True)