Closed wiseman-timelord closed 1 month ago
Thanks for reporting, I'll take a look at it.
According to GPT4...
import ctypes
from ctypes import wintypes
import os
def get_documents_folder():
# Define constants for the SHGetFolderPath function
CSIDL_PERSONAL = 5 # CSIDL for "My Documents" folder
SHGFP_TYPE_CURRENT = 0
# Buffer to store the folder path
buf = ctypes.create_unicode_buffer(wintypes.MAX_PATH)
# Load shell32.dll and call SHGetFolderPathW
shell32 = ctypes.windll.shell32
result = shell32.SHGetFolderPathW(None, CSIDL_PERSONAL, None, SHGFP_TYPE_CURRENT, buf)
if result == 0: # S_OK
return buf.value
else:
raise Exception("Failed to get 'My Documents' folder path")
documents_path = get_documents_folder()
print("My Documents folder is located at:", documents_path)
import os
def get_documents_folder_using_expanduser():
home_directory = os.path.expanduser("~")
documents_folder = os.path.join(home_directory, "Documents")
return documents_folder
documents_path = get_documents_folder_using_expanduser() print("My Documents folder (via expanduser) is located at:", documents_path)
I have commited a PR #343 to fix this. @wiseman-timelord I used your second solution because I also stumbled over it when researching the issue. Could you please check if this simple change is enough to fix the issue for you?
Mantella v11 saves the config.ini in a safe location of the mantella dir, however, with regards to v12...
config.ini
. No other programs are having this issue, and when I click on the fav link for documents, it is not the one with mantella in it, its the correct one on the other drive.