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:
mike-hunhoff
2020-09-09 10:58:30 -06:00
committed by GitHub

View File

@@ -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()