Skip to content

Commit

Permalink
Fix PyInstaller 3.11 installation error with get_signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronatp authored Mar 19, 2024
1 parent 11585c3 commit 58b0336
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capa/capabilities/domain_ip_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def get_file_path(doc: ResultDocument) -> Path:

def get_sigpaths_from_doc(doc: ResultDocument):
import capa.loader
from capa.main import get_default_root

logger.debug("enter get_sigpaths_from_doc")

Expand Down Expand Up @@ -65,7 +66,7 @@ def get_sigpaths_from_doc(doc: ResultDocument):

else:
logger.debug("enter else block")
sigpath = "(embedded)" # type: ignore
sigpath = get_default_root() / "sigs"
logger.debug("got else sigpath")

logger.debug("attempt capa.loader.get_signatures(sigpath)")
Expand Down

0 comments on commit 58b0336

Please sign in to comment.