修复找不到微信路径的问题#50

This commit is contained in:
shuaikangzhou 2023-12-04 18:19:58 +08:00
parent 3aef688808
commit 58445d26b8

View File

@ -23,6 +23,7 @@ def mkdir(path):
def wx_path(): def wx_path():
try:
## 获取当前用户名 ## 获取当前用户名
user_home = os.environ.get("USERPROFILE") user_home = os.environ.get("USERPROFILE")
## 找到3ebffe94.ini配置文件 ## 找到3ebffe94.ini配置文件
@ -41,3 +42,6 @@ def wx_path():
else: else:
wx_location = txt + "\WeChat Files" wx_location = txt + "\WeChat Files"
return wx_location return wx_location
except FileNotFoundError:
return '.'