Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 24, 2013, 09:31 AM   #1
ThunderBow
macrumors newbie
 
Join Date: Mar 2013
Location: 1 Infinity Loop, Cupertino California :)
Python.app

On a mac, if you click "Go" in Finder and click "Go to folder", and type in /System/Library/Frameworks/Python.framework/Resources/

there will be a Python.app application. When you try to launch it, it will start up for a split second, but then close out. Why does this happen? and what is that app used for? Thanks!
ThunderBow is offline   0 Reply With Quote
Old Apr 24, 2013, 10:08 AM   #2
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
If I had to guess, I would say that it's an executable that you would pass command line arguments to via Terminal, for example, if you wanted it to do anything.

I know nothing about Python, though, so that's just a guess.

It might also do nothing but launch a background process that continues running on your computer after it disappears from your dock.
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is offline   0 Reply With Quote
Old Apr 24, 2013, 12:27 PM   #3
chown33
macrumors 603
 
Join Date: Aug 2009
It's probably to allow for starting Python programs by double-clicking a .py file. However, it doesn't appear to be the primary app because it lacks the relevant CFBundleDocumentTypes entries.

My guess is that PythonLauncher.app (which does have the CFBundleDocumentTypes entries) receives the initial launch, and then it does something before passing control off to Python.app. I don't know what it would do, but maybe you can find the source and discover how they work.

I note that both Python.app and PythonLauncher.app have copyright notices for the Python Foundation, so you might find something on their website.
chown33 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Python Programming FDomin16 Mac Programming 3 Apr 8, 2013 10:59 AM
Python and NLTK GeoffWillis Mac Programming 2 Feb 15, 2013 11:59 PM
Python in iOS App nashyo iPhone/iPad Programming 3 Jan 14, 2013 03:21 PM
Python 3.2.3 dboxall123 Mac Programming 4 Sep 27, 2012 10:53 AM
Learning Python nashyo Mac Programming 16 Aug 3, 2012 11:12 AM

Forum Jump

All times are GMT -5. The time now is 03:12 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC