mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-02 20:47:35 +08:00
fix: Correct indentation and formatting issues in totally_reset_cursor.py
- Fixed indentation in the get_cursor_paths function for better readability. - Adjusted the else statement in the MachineIDResetter class to maintain consistent formatting. - Ensured proper newline at the end of the file for compliance with coding standards.
This commit is contained in:
parent
07bed23848
commit
3424f49a57
@ -111,7 +111,7 @@ def get_cursor_paths(translator=None) -> Tuple[str, str]:
|
|||||||
# For Linux, try to find the first existing path if the configured one doesn't exist
|
# For Linux, try to find the first existing path if the configured one doesn't exist
|
||||||
if system == "Linux" and not os.path.exists(base_path):
|
if system == "Linux" and not os.path.exists(base_path):
|
||||||
for path in default_paths["Linux"]:
|
for path in default_paths["Linux"]:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
base_path = path
|
base_path = path
|
||||||
# Update config with the found path
|
# Update config with the found path
|
||||||
config.set(section, 'cursor_path', path)
|
config.set(section, 'cursor_path', path)
|
||||||
@ -529,7 +529,7 @@ class MachineIDResetter:
|
|||||||
self.db_path = config.get('LinuxPaths', 'storage_path')
|
self.db_path = config.get('LinuxPaths', 'storage_path')
|
||||||
self.sqlite_path = config.get('LinuxPaths', 'sqlite_path')
|
self.sqlite_path = config.get('LinuxPaths', 'sqlite_path')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError(f"Not Supported OS: {sys.platform}")
|
raise NotImplementedError(f"Not Supported OS: {sys.platform}")
|
||||||
|
|
||||||
# Save any changes to config file
|
# Save any changes to config file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user