Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix get APPDATA path error from Linux. #53

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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