Open Paradoxis opened 7 years ago
Working monkey-patch, but the entire library has issues handling paths in Windows which means its still useless.
from os.path import abspath, expanduser
import gnupg._meta
gnupg._meta.GPGBase._homedir_setter = lambda self, directory: setattr(self, "_homedir", abspath(expanduser(directory)))
When setting the home directory, it's not possible to pass a windows style home directory. The path gets escaped before getting padded to
_meta._create_if_necessary
. The lines that cause this: