mirror of
https://git.axenov.dev/mirrors/cursor-free-vip.git
synced 2025-12-26 05:30:36 +03:00
fix macOS 'bypass_version.py' get product_json_path from config_file
This commit is contained in:
@@ -50,6 +50,8 @@ def get_product_json_path(translator=None):
|
|||||||
|
|
||||||
elif system == "Darwin": # macOS
|
elif system == "Darwin": # macOS
|
||||||
product_json_path = "/Applications/Cursor.app/Contents/Resources/app/product.json"
|
product_json_path = "/Applications/Cursor.app/Contents/Resources/app/product.json"
|
||||||
|
if config.has_section('MacPaths') and config.has_option('MacPaths', 'product_json_path'):
|
||||||
|
product_json_path = config.get('MacPaths', 'product_json_path')
|
||||||
|
|
||||||
elif system == "Linux":
|
elif system == "Linux":
|
||||||
# Try multiple common paths
|
# Try multiple common paths
|
||||||
|
|||||||
Reference in New Issue
Block a user