Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diedir is case sensitive #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

diedir is case sensitive #20

wants to merge 1 commit into from

Conversation

crowell
Copy link

@crowell crowell commented Jun 24, 2015

closing the other one due to rebase and such

@crowell crowell force-pushed the patch-2 branch 2 times, most recently from 77154cd to 7484921 Compare June 24, 2015 19:56
closing the other one due to rebase and such
@techbliss
Copy link

i would use this solution instead.
then there are no need for environment editing.

ida_proxy.py

import imp
from os import path, environ
import sys
import idaapi

idahomedie = idaapi.idadir("plugins\\DIE")
DIE_DIR = idahomedie
DIE_NAME = idaapi.idadir("plugins\\DIE\\DIE.py")

sys.path.append(DIE_DIR)

plugin_path = path.join(DIE_DIR, DIE_NAME)

plugin = imp.load_source(__name__, plugin_path)

PLUGIN_ENTRY = plugin.PLUGIN_ENTRY```

ida always know where root dir is, so this method is better.
Also place DIE.py in plugins\DIE\DIE.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants