Update version to 1.10.01, add function to retrieve user Documents folder path, and enhance CHANGELOG with new project guidelines and fixes.

This commit is contained in:
yeongpin
2025-04-16 10:34:53 +08:00
parent da9d4a3648
commit 51ac969f76
3 changed files with 26 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import tempfile
import glob
from colorama import Fore, Style, init
import configparser
from new_signup import get_user_documents_path
import sys
from config import get_config
from datetime import datetime
@@ -23,6 +23,20 @@ EMOJI = {
"WARNING": "⚠️",
}
def get_user_documents_path():
"""Get user Documents folder path"""
if sys.platform == "win32":
return os.path.join(os.path.expanduser("~"), "Documents")
elif sys.platform == "darwin":
return os.path.join(os.path.expanduser("~"), "Documents")
else: # Linux
# Get actual user's home directory
sudo_user = os.environ.get('SUDO_USER')
if sudo_user:
return os.path.join("/home", sudo_user, "Documents")
return os.path.join(os.path.expanduser("~"), "Documents")
def get_workbench_cursor_path(translator=None) -> str:
"""Get Cursor workbench.desktop.main.js path"""
system = platform.system()