mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
Merge pull request #301 from fireeye/fix-298
ida plugin: don't use rule path settings if the path doesn't exist
This commit is contained in:
@@ -333,7 +333,7 @@ class CapaExplorerForm(idaapi.PluginForm):
|
||||
|
||||
# resolve rules directory - check self and settings first, then ask user
|
||||
if not self.rule_path:
|
||||
if "rule_path" in settings:
|
||||
if "rule_path" in settings and os.path.exists(settings["rule_path"]):
|
||||
self.rule_path = settings["rule_path"]
|
||||
else:
|
||||
rule_path = self.ask_user_directory()
|
||||
|
||||
Reference in New Issue
Block a user