Skip to content

Commit

Permalink
fix: fix get APPDATA path error from Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
loonghao committed Jul 7, 2024
1 parent c9bc2aa commit fb4ec11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pip install -r requirements-dev.txt

## 在maya中测试
With `nox -s maya -- <maya version>`, start maya.
Nox will dynamically register a nox session based on your local installation of maya,
Nox will dynamically register a nox session based on your local installation of maya,
e.g. if you have `maya-2020` installed locally, then you can start maya with a test environment.
Then you can start maya with a test environment via

Expand Down
4 changes: 3 additions & 1 deletion maya_umbrella/vaccines/vaccine3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Import built-in modules
import glob
import os
import platform

# Import local modules
from maya_umbrella.filesystem import check_virus_by_signature
Expand Down Expand Up @@ -81,7 +82,8 @@ def collect_infected_hik_files(self):

def collect_issues(self):
"""Collect all issues related to the virus."""
self.api.add_malicious_file(os.path.join(os.getenv("APPDATA"), "syssst"))
if platform.system() == "Windows":
self.api.add_malicious_file(os.path.join(os.getenv("APPDATA"), "syssst"))
self.collect_infected_mel_files()
self.collect_infected_hik_files()
self.collect_infected_nodes()
Expand Down

0 comments on commit fb4ec11

Please sign in to comment.