I have this program in Python which should save text files to a folder inside the “My Documents” of the user. The problem is that the program doesn’t know the username, or the Windows version to know the correct path. How could I get this done?
Share
The doc says, the following code is expanded to the user’s home directory on windows too..
From the documentation:
Also look into this for using Win32APIs