Closed erhhung closed 6 months ago
Thanks for the report - I think this is because the parent directory did not exist; should be an easy fix.
Thanks for the report - I think this is because the parent directory did not exist; should be an easy fix.
Actually, with the parent directory already created, it still fails with the same error. I believe Python just doesn't understand standard shell glob patterns like ~/
:
GLOB_TILDE
Carry out tilde expansion. If a tilde ('~') is the only
character in the pattern, or an initial tilde is followed
immediately by a slash ('/'), then the home directory of
the caller is substituted for the tilde. If an initial
tilde is followed by a username (e.g., "~andrea/bin"),
then the tilde and username are substituted by the home
directory of that user. If the username is invalid, or
the home directory cannot be determined, then no
substitution is performed.
Describe the bug
After answering various prompts,
harlequin --config
crashes withFileNotFoundError
instead of creating a new config file.To Reproduce
Expected behavior
~/.config/harlequin/config.toml
.~/
in the path to the$HOME
path.~/.config/harlequin
directory to be created automatically (does not currently exist).harlequin
without the--config-path
option to automatically read this new config file according to$XDG_CONFIG_HOME
conventions.Actual behavior
$XDG_CONFIG_HOME
path.Additional context
Can you tell us more about your system?