1

I have built a python command prompt program that I would like to export so that when an icon is clicked, it will automatically run, much like an app, but I have never seen an app that runs in the terminal. Should I try to make it an app and if so, how is this done? (Specifically for Mac)

3 Answers 3

2

If you're talking about packaging your python script into a standalone application for Mac, you can use py2app

Link Here: https://pythonhosted.org/py2app/

You basically just write a python script, and then use this to help package it.

I hope this helped!

Sign up to request clarification or add additional context in comments.

Comments

1

If you don't want a standalone app, just run a python script by clicking an icon, you can make a simple bash script to do it.

Here is a simple tutorial on that.

2 Comments

Is there a way to use this method allowing it to be used on other computers without entering the file path each time? I would like to distribute it.
Not really. If you want to distribute it, I recommend using @Xeno's answer. That will run everywhere, even if there's no python installed.
0

If your script is small then the python docs indicate that the "Build Applet" tool might do the needful. See paragraph 4.5 of this link.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.