Before, the user directory cards_tables/ was not created on fresh install, which made card commands fail when trying to read the deck state from within the directory.
Now, the directory is created.
Note
This introduces a new helper for getting subpaths of the user directory. If that's cool, then I'll follow this up with a PR adopting it across the common file. It should make the code a bit more readable.
(I'm not familiar with the overall codebase, so it's totally possible that belongs in a shared utility module for all the scripts files to work with.)
Before, the user directory cards_tables/ was not created on fresh install, which made card commands fail when trying to read the deck state from within the directory.
Now, the directory is created.
Note
This introduces a new helper for getting subpaths of the user directory. If that's cool, then I'll follow this up with a PR adopting it across the common file. It should make the code a bit more readable.
(I'm not familiar with the overall codebase, so it's totally possible that belongs in a shared utility module for all the scripts files to work with.)