Skip to content

Commit

Permalink
ida_plugin: create ida plugins dir if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jul 16, 2020
1 parent fdcb36e commit 641f433
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fa/ida_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,13 @@ def install():
Install FA ida plugin
:return: None
"""
fa_plugin_filename = os.path.join(
idaapi.get_user_idadir(), 'plugins', PLUGIN_FILENAME)
fa_plugin_dir = os.path.join(
idaapi.get_user_idadir(), 'plugins')

if not os.path.exists(fa_plugin_dir):
os.makedirs(fa_plugin_dir)

fa_plugin_filename = os.path.join(fa_plugin_dir, PLUGIN_FILENAME)
if os.path.exists(fa_plugin_filename):
IdaLoader.log('already installed')
return
Expand Down

0 comments on commit 641f433

Please sign in to comment.