metov / installcmd

Print correct command for installing a package.
1 stars 1 forks source link

FileNotFoundError when config dir does not exist #23

Open metov opened 2 years ago

metov commented 2 years ago

Some code paths try to access files in the config directory. However, when this directory does not exist yet, the result is a confusing FileNotFoundError (eg. when trying to create a file).

The config module should check if the top-level config dir exists, and either do the equivalent of mkdir -p or produce a more sensible error message.