Agunua crashes when attempting import in Python under Windows 10
An attempt to import Agunua crashes in Windows 10 (using the version of Python 3.10 downloaded from Microsoft Store). The problem is in __init__.py at this line:
TOFU = os.path.join(os.environ["HOME"], ".agunua/fingerprints/") # If it is set to "" or None, we don't trust (no tofu).
There is no "HOME" defined in windows Python.
A workaround is something like this:
import platform
if (platform.system()=='Windows'):
TOFU = os.path.expanduser("~") + '\\Documents\\agunua\\fingerprints'
else:
TOFU = os.path.join(os.environ["HOME"], ".agunua/fingerprints/") # If it is set to "" or None, we don't trust (no tofu).