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)

asked Nov 26, 2014 at 21:36

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!

answered Nov 26, 2014 at 21:52
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.

answered Nov 26, 2014 at 22:16

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.

answered Apr 14, 2015 at 13:24

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.