| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,7 @@ class WechatUtils: | |||
| 6 | 6 | def __init__(self): | |
| 7 | 7 | self.configs_path = self.get_configs_path() | |
| 8 | 8 | self.version_list = self.get_version_list() | |
| 9 | - if sys.platform.startswith('win'): | ||
| 10 | - import winreg | ||
| 11 | - else: | ||
| 12 | - winreg = None | ||
| 13 | - | ||
| 9 | + | ||
| 14 | 10 | # self.pid , self.version = self.get_wechat_pid_and_version() | |
| 15 | 11 | # if self.pid is None and self.version is None: | |
| 16 | 12 | # self.print_process_not_found_message() | |
@@ -60,6 +56,7 @@ def print_process_not_found_message(self): | |||
| 60 | 56 | ||
| 61 | 57 | def find_installation_path(self, program_name): | |
| 62 | 58 | try: | |
| 59 | + import winreg | ||
| 63 | 60 | reg_path = r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | |
| 64 | 61 | reg_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, reg_path) | |
| 65 | 62 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments