solmate-sdk
solmate-sdk copied to clipboard
Exception when creating directory for credentials file on Windows machine
Running the quickstart() (module apiclient.py) on a Windows machine raises an exception when creating the directory for the credentials file. Solution: Add "parents=True" keyword to mkdir() to allow Windows to create all missing parents in the path.
This doesn't work on Windows machines
... CONFIG_DIRECTORY.mkdir(exist_ok=True) ... FileNotFoundError: [WinError 3] Das System kann den angegebenen Pfad nicht finden: 'C:\Users\anyuser\.config\solmate-sdk'
This works on Windows machines as well
... CONFIG_DIRECTORY.mkdir(parents=True, exist_ok=True) ...