Add manual Cursor registration with manual email input

This commit is contained in:
yeongpin
2025-02-13 13:24:32 +08:00
parent 57ea4dd25a
commit fed50a31cc
7 changed files with 410 additions and 110 deletions

View File

@@ -16,10 +16,10 @@ class NewTempEmail:
def get_extension_block(self):
"""获取插件路径"""
root_dir = os.getcwd()
extension_path = os.path.join(root_dir, "uBlock0.chromium")
extension_path = os.path.join(root_dir, "PBlock")
if hasattr(sys, "_MEIPASS"):
extension_path = os.path.join(sys._MEIPASS, "uBlock0.chromium")
extension_path = os.path.join(sys._MEIPASS, "PBlock")
if not os.path.exists(extension_path):
raise FileNotFoundError(f"插件不存在: {extension_path}")