Skip to content

Commit

Permalink
Remove references to user_plugin_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hennenfent authored and Eric Hennenfent committed Aug 10, 2017
1 parent e99c2fd commit 0d75712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions __init__.py
Expand Up @@ -74,7 +74,7 @@ def calculate_return_addr_pos(stack_pointer, base_pointer, instr_pointer, bv):
# for target in targets:
# print("return address will be at 0x{:02x} (0x{:02x} + {})".format(target, stack_pointer, target - stack_pointer))
# We should probably come up with something more intelligent to do with multiple return addreses than just returning the first.
# However, I haven't seen this in the wild yet, so it's difficult to know what the right behavior should be.
# However, I haven't seen this in the wild yet, so it's difficult to know what the right behavior should be.
return targets[0]

def navigate_to_address(bv, address):
Expand Down Expand Up @@ -353,7 +353,8 @@ def attach_live_view(bv):
def set_debugger_args(bv):
set_arguments(get_debugger_argument(bv), bv)

path = user_plugin_path + '/binja_dynamics/'
path = os.path.dirname(os.path.realpath(__file__)) + '/'
# path = user_plugin_path + '/binja_dynamics/'
add_image_button(path + "icons/terminal.png", iconsize, terminal_wrapper, "Open a terminal with the selected debugger session")
add_image_button(path + "icons/write.png", iconsize, set_debugger_args, "Set Runtime Arguments")
add_image_button(path + "icons/run.png", iconsize, partial(update_wrapper, run_binary), "Run Binary")
Expand Down
2 changes: 1 addition & 1 deletion terminal_emulator/__init__.py
Expand Up @@ -90,7 +90,7 @@ def __init__(self):

# Creates the history button
self._hist_button = QtWidgets.QPushButton()
self._hist_button.setIcon(QIcon(user_plugin_path + '/binja_dynamics/icons/history.png'))
self._hist_button.setIcon(QIcon(os.path.dirname(os.path.realpath(__file__)) + '/../icons/history.png'))
self._hist_button.setIconSize(QSize(22, 22))

# We use a submenu to implement the history browser. It's not the prettiest,
Expand Down

0 comments on commit 0d75712

Please sign in to comment.