Skip to content

Commit 56f9a86

Browse files
committed
Update version to 1.10.02, enhance CHANGELOG with new project guidelines, and implement a function to retrieve user Documents folder path in reset_machine_manual.py and totally_reset_cursor.py.
1 parent bdb7fa4 commit 56f9a86

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=1.10.01
2-
VERSION=1.10.01
1+
version=1.10.02
2+
VERSION=1.10.02

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Log
22

3+
## v1.10.02
4+
1. Remove: Remove All Auto generating fake Google email accounts and OAuth access | 移除所有自動生成假 Google 電子郵件帳戶和 OAuth 訪問
5+
2. Follow GitHub Terms of Service | 遵守 GitHub Terms of Service
6+
3. Follow Cursor Terms of Service | 遵守 Cursor Terms of Service
7+
4. All are for educational purposes, currently the repo does not violate any laws | 全都是教育用途,目前 repo 沒有違反任何法律
8+
5. This project adopts CC BY-NC-ND 4.0 , do not use for commercial purposes | 本專案採用 CC BY-NC-ND 4.0,拒絕任何商業用途
9+
6. Use & Cherish | 切用且珍惜
10+
7. Same as v1.10.01 | 與 v1.10.01 相同
11+
8. Fix: reset machine ID no module name 'new_signup' | 修復機器 ID 重置 no module name 'new_signup'
12+
9. Fix: Some Issues | 修復一些問題
13+
314
## v1.10.01
415
1. Remove: Remove All Auto generating fake Google email accounts and OAuth access | 移除所有自動生成假 Google 電子郵件帳戶和 OAuth 訪問
516
2. Follow GitHub Terms of Service | 遵守 GitHub Terms of Service

reset_machine_manual.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from colorama import Fore, Style, init
1313
from typing import Tuple
1414
import configparser
15-
from new_signup import get_user_documents_path
1615
import traceback
1716
from config import get_config
1817
from datetime import datetime
@@ -31,6 +30,20 @@
3130
"WARNING": "⚠️",
3231
}
3332

33+
def get_user_documents_path():
34+
"""Get user Documents folder path"""
35+
if sys.platform == "win32":
36+
return os.path.join(os.path.expanduser("~"), "Documents")
37+
elif sys.platform == "darwin":
38+
return os.path.join(os.path.expanduser("~"), "Documents")
39+
else: # Linux
40+
# Get actual user's home directory
41+
sudo_user = os.environ.get('SUDO_USER')
42+
if sudo_user:
43+
return os.path.join("/home", sudo_user, "Documents")
44+
return os.path.join(os.path.expanduser("~"), "Documents")
45+
46+
3447
def get_cursor_paths(translator=None) -> Tuple[str, str]:
3548
""" Get Cursor related paths"""
3649
system = platform.system()

totally_reset_cursor.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from colorama import Fore, Style, init
1212
from typing import Tuple
1313
import configparser
14-
from new_signup import get_user_documents_path
1514
import traceback
1615
from config import get_config
1716
import glob
@@ -30,6 +29,20 @@
3029
"WARNING": "⚠️",
3130
}
3231

32+
def get_user_documents_path():
33+
"""Get user Documents folder path"""
34+
if sys.platform == "win32":
35+
return os.path.join(os.path.expanduser("~"), "Documents")
36+
elif sys.platform == "darwin":
37+
return os.path.join(os.path.expanduser("~"), "Documents")
38+
else: # Linux
39+
# Get actual user's home directory
40+
sudo_user = os.environ.get('SUDO_USER')
41+
if sudo_user:
42+
return os.path.join("/home", sudo_user, "Documents")
43+
return os.path.join(os.path.expanduser("~"), "Documents")
44+
45+
3346
def get_cursor_paths(translator=None) -> Tuple[str, str]:
3447
""" Get Cursor related paths"""
3548
system = platform.system()

0 commit comments

Comments
 (0)