Skip to content

How to create an executable file from Slither #2660

Closed Answered by human-77
human-77 asked this question in Q&A
Discussion options

You must be logged in to vote

So, turns out it was simpler than I though:

1 - I created a temp directory

$ mkdir temp

2 - I copied the __main__.py of the site-packages directory

$ cp  /usr/lib/python3.11/site-packages/slither/__main__.py /temp/slither-executable.py

3 - I ran pyinstaller:

$ cd temp
$ pyinstaller slither-executable.py --onefile

It works perfectly. Thanks for the help!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by human-77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants