Almost always, you want to create the directory at least once, what I propose is either PATH = platformdirs.user_config_data(AppName, AppAuthor, AppVersion).makedirs or PATH = platformdirs.user_config_data(AppName, AppAuthor, AppVersion, MakeDir) which will then make the directory and return the directory path
Almost always, you want to create the directory at least once, what I propose is either
PATH = platformdirs.user_config_data(AppName, AppAuthor, AppVersion).makedirs
orPATH = platformdirs.user_config_data(AppName, AppAuthor, AppVersion, MakeDir)
which will then make the directory and return the directory path