I have a python file and im going to convert it into an exe file and i want the users to be able to run this file when right clicking a file aka the context menu(its a malware scanning tool using virus total so when the user right clicks the file they want to scan i want an option in the menu called ‘scan with myfilename’, also my program is command line and doesnt have any gui or anything) how is this possible(if any external libraries exist for this, then i am willing to use it)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Yes, it is possible to convert a Python script into .exe. You could use a tool called PyInstaller to do so.
PyInstaller freezes Python applications into stand-alone executables, under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX.
To install PyInstaller you can run the following command:
pip install pyinstaller
Then to run it, you could use the following:
pyinstaller yourprogram.py
For more information, make sure to check out the official website here:
Best, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.