You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
# Fix: change 'hd' to 'directory', since they don't handle shell commands at all
_util._create_if_necessary(hd) -> _util._create_if_necessary(directory)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: "C:\\Users\\Luke\\Documents\\Projects\\myproject\\'C:"
# in _homedir_setter# directory = 'C:\\Users\\Paradoxis\\/.gnupg/'hd=_parsers._fix_unsafe(directory)
# hd = '\\'C:\\Users\\Luke\\/.gnupg/\\''# Path gets wrapped in quoteslog.debug("GPGBase._homedir_setter(): got directory '%s'"%hd)
ifhd:
log.debug("GPGBase._homedir_setter(): Check existence of '%s'"%hd)
_util._create_if_necessary(hd) # Quoted path passed to standard library# in _create_if_necessary# directory = '\\'C:\\Users\\Luke\\/.gnupg/\\''ifnotos.path.isabs(directory):
log.debug("Got non-absolute path: %s"%directory)
directory=os.path.abspath(directory)
# Standard directory doesn't understand the quotes, so appends the current working directory to it# directory = 'C:\\Users\\Luke\\Documents\\Projects\\myproject\\\\'C:\\Users\\Luke\\.gnupg\\\\''ifnotos.path.isdir(directory):
log.info("Creating directory: %s"%directory)
# Invalid path triggers exception# OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: "C:\\Users\\Luke\\Documents\\Projects\\myproject\\'C:"try:
os.makedirs(directory, 0x1C0)
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: