mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 19:02:17 +08:00
修复找不到微信路径的问题#50
This commit is contained in:
parent
3aef688808
commit
58445d26b8
@ -23,6 +23,7 @@ def mkdir(path):
|
||||
|
||||
|
||||
def wx_path():
|
||||
try:
|
||||
## 获取当前用户名
|
||||
user_home = os.environ.get("USERPROFILE")
|
||||
## 找到3ebffe94.ini配置文件
|
||||
@ -41,3 +42,6 @@ def wx_path():
|
||||
else:
|
||||
wx_location = txt + "\WeChat Files"
|
||||
return wx_location
|
||||
except FileNotFoundError:
|
||||
return '.'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user