FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

解决 -c 时报错 · axisL/WeChatOpenDevTools-Python@2ed68b7 · GitHub

Commit 2ed68b7

Browse files
authored
解决 -c 时报错
1 parent fb1d0f8 commit 2ed68b7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎utils/wechatutils.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ class WechatUtils:
66
def __init__(self):
77
self.configs_path = self.get_configs_path()
88
self.version_list = self.get_version_list()
9-
if sys.platform.startswith('win'):
10-
import winreg
11-
else:
12-
winreg = None
13-
9+
1410
# self.pid , self.version = self.get_wechat_pid_and_version()
1511
# if self.pid is None and self.version is None:
1612
# self.print_process_not_found_message()
@@ -60,6 +56,7 @@ def print_process_not_found_message(self):
6056

6157
def find_installation_path(self, program_name):
6258
try:
59+
import winreg
6360
reg_path = r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
6461
reg_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, reg_path)
6562

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL