Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
87owo authored Jan 6, 2025
1 parent 4e98d6d commit 8d9dea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions PYAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self): # 初始化調用

def init_config_vars(self): # 初始化變數
self.pyae_version = "AI Engine"
self.pyas_version = "3.2.6"
self.pyas_version = "3.2.7"
self.mbr_value = None
self.track_proc = None
self.first_startup = 1
Expand Down Expand Up @@ -1123,8 +1123,8 @@ def lock_file(self, file, lock): # 鎖定檔案
else:
msvcrt.locking(self.virus_lock[file], msvcrt.LK_UNLCK, os.path.getsize(file))
os.close(self.virus_lock[file])
except:
pass
except Exception as e:
print(e)

def virus_solve(self): # 清理病毒
try:
Expand Down Expand Up @@ -1265,10 +1265,7 @@ def traverse_path(self, file_path): # 遍歷路徑

def start_scan(self, file): # 調用掃描引擎
try:
if isinstance(file, dict):
match_data = file
elif os.path.exists(file):
match_data = self.model.get_type(file)
match_data = self.model.get_type(file)
for section, data in match_data.items():
label, level = self.model.dl_scan(data)
if label and label in self.model.detect:
Expand Down
2 changes: 1 addition & 1 deletion PYAS_Version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pyinstaller_versionfile.create_versionfile(
output_file="versionfile.txt",
version='3.2.6',
version='3.2.7',
company_name="PYAS Security",
file_description="Python Antivirus Software",
internal_name="PYAS",
Expand Down

0 comments on commit 8d9dea4

Please sign in to comment.