Wesley, What I meant is that I would like a file that can be double clicked in order to run the python script.. so that I can drop it on another mac where someone can execute it without worrying about Terminal.
Essentially, I need everything to be clean in the end.. My projects are artworks and function better without the tech confusion when viewers interact with them.. I hope this helps clarify my trouble Thanks for the explanation -- it is helpful.. On Tue, Jul 7, 2009 at 2:35 PM, wesley chun <wes...@gmail.com> wrote: > >> >I'm having trouble finding good tutorials on creating standalone > >> > executable > >> >files for mac os x.. I've been looking at 'py2app', [...] > > > pete, > > welcome to Python! in order for all to answer your question more > appropriately, you'll have to describe the problem in slightly more > detail. > > what do you mean when you say "standalone executable?" the reason why > i ask is because a tool like py2app -- the equivalent to py2exe on PCs > -- is meant to be used in situations where you're installing the > application on a Mac which you're not sure whether Python is installed > on it and/or to bundle up your code in a way that's harder to reverse > engineer than a plain text .py file. > > bill's suggestion comes from the fact that pretty much all Macs these > days come with Python installed and all you would need to do is to > just make your .py file executable, hence the "chmod +x > YOUR_MODULE.py" so that you can run YOUR_MODULE.py directly from the > shell instead of having to prepend it, i.e, "python YOUR_MODULE.py". > > in your example above, you have both mypython.py and app_test.py -- > you need to make sure that you: 1) use the same name (which is why i > changed them to YOUR_MODULE.py meaning substitute in the actual > filename in place of "YOUR_MODULE" and 2) that the directory that your > script is in is also in your PATH environment variable -- otherwise > you would need to do ./YOUR_MODULE.py if your shell is in the same > directory as your file. > > hope this helps! > -- wesley > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > "Core Python Programming", Prentice Hall, (c)2007,2001 > "Python Fundamentals", Prentice Hall, (c)2009 > http://corepython.com > > wesley.j.chun :: wescpy-at-gmail.com > python training and technical consulting > cyberweb.consulting : silicon valley, ca > http://cyberwebconsulting.com > -- Pete Froslie http://www.froslie.net
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor