Skip to content

Commit

Permalink
behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Brukhovetskyy committed Jan 9, 2025
1 parent fd82d00 commit 0cfe6c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/processing/behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,10 @@ def run(self):
log.exception('Failed to run partial behavior class "%s" due to "%s"', instance.key, e)
else:
log.warning('Analysis results folder does not exist at path "%s"', self.logs_path)
# load behavior from json if exist or env USER_JSON variable
# load behavior from json if exist or env CAPE_REPORT variable
json_path = False
if os.environ.get("USER_JSON") and path_exists(os.environ["USER_JSON"]):
json_path = os.environ["USER_JSON"]
if os.environ.get("CAPE_REPORT") and path_exists(os.environ["CAPE_REPORT"]):
json_path = os.environ["CAPE_REPORT"]
elif os.path.exists(os.path.join(self.reports_path, "report.json")):
json_path = os.path.join(self.reports_path, "report.json")

Expand Down

0 comments on commit 0cfe6c8

Please sign in to comment.