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

Update intezer_analyze_gh_community.py #10

Merged
merged 1 commit into from
Sep 13, 2020
Merged

Conversation

dmoore44
Copy link
Contributor

@dmoore44 dmoore44 commented Sep 3, 2020

This should help resolve some of the site-packages pathing issues that some users are encountering on Debian, macOS, and Windows.

If memory serves, there's a difference between the way Debian (and its derivative distros) treat site-packages (i.e. the path is dist-packages, as reflected in the script, but site-packages on other flavors), which is why there's a test "Posix" and "Linux" in the initial if statement. Perhaps someone smarter than I can come up with a way to test for Linux distro.

sys.path.append('C:\\Python27\\lib\\site-packages')
else:
print('Whelp, something went wrong.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not solving the os.name java issue as far as I understand, correct?

@dmoore44
Copy link
Contributor Author

dmoore44 commented Sep 6, 2020

The print statement in else? No - that’s just embellishment on my part; it’s me being a bit glib with respect to error handling in the event that a prior condition is not met.

With respect to os.name returning java, that’s not an error. Ghidra comes packaged with the jython interpreter, so any python Ghidra scripts are interpreted using Jython.

@davidt99 davidt99 merged commit 55da344 into intezer:master Sep 13, 2020
@davidt99
Copy link
Contributor

Thanks for the PR!

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.

None yet

2 participants