Skip to content

Commit a940a8d

Browse files
kelvinbenYour Name
kelvinben
authored and
Your Name
committed
1. 修复文件路径修正后无法反编译的问题
1 parent 69dfc2f commit a940a8d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

libs/task/base_task.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ def __tast_control__(self):
7474
cache_info = DownloadTask().start(self.path,self.types)
7575
cacar_path = cache_info["path"]
7676
types = cache_info["type"]
77+
78+
print(os.path.exists(cacar_path))
79+
print(cores.download_flag)
7780

78-
if not (os.path.exists(cacar_path) and cores.download_flag):
81+
if (not os.path.exists(cacar_path) and cores.download_flag):
7982
print("[-] File download failed! Please download the file manually and try again.")
8083
return task_info
8184

libs/task/download_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def start(self,path,types):
3333

3434
if not(path.startswith("http://") or path.startswith("https://")):
3535
if not os.path.isdir(path):
36-
return {"path":self.path,"type":types}
36+
return {"path":path,"type":types}
3737
else:
38-
return {"path":self.path,"type":self.types}
38+
return {"path":path,"type":types}
3939
else:
4040
print("[*] Detected that the task is not local, preparing to download file......")
4141
cache_path = os.path.join(cores.download_path, file_name)

0 commit comments

Comments
 (0)