def rcfile(): """ Return the full name of the users rc file. """ if sys.platform == "win32": return os.path.join(winreg.get_appdata(), appname, "solfegerc") else: return os.path.expanduser("~/.solfegerc")
def app_data(): """ Return the full path name of the directory that will store files created by the program. For example statistics and test results. """ if sys.platform == "win32": return os.path.join(winreg.get_appdata(), appname) else: return os.path.expanduser("~/.solfege")