From 30df4d9ad18401b9aeb8ce8b15ea44ad081cc8ee Mon Sep 17 00:00:00 2001 From: QTom <22166516+DaydreamCoding@users.noreply.github.com> Date: Sat, 19 Apr 2025 16:58:01 +0800 Subject: [PATCH] fix macOS 'bypass_version.py' get product_json_path from config_file --- bypass_version.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bypass_version.py b/bypass_version.py index 3658361..bde0c73 100644 --- a/bypass_version.py +++ b/bypass_version.py @@ -50,6 +50,8 @@ def get_product_json_path(translator=None): elif system == "Darwin": # macOS 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": # Try multiple common paths