ida plugin: don't use rule path settings if the path doesn't exist

closes #298
This commit is contained in:
Willi Ballenthin
2020-09-09 10:36:48 -06:00
committed by GitHub
parent 8cd90e5c2d
commit 95b4c55ea2
+1 -1
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()