This tutorial series is brand new:
http://lethain.com/entry/2008/aug/22/an-epic-introduction-to-pyobjc-and-cocoa/
Looks like a good one too, although I can't verify that as I haven't
had the time to work through it yet.
I have worked through a few tuts at http://cocoadevcentral.com/ and
ca
Thank you! This solved it for me.
I knew it had to be something as ridiculously n00bish as keeping
"python" in the script call.
On 07/08/2008, at 9:58 PM, Mike Covill wrote:
You should be able to execute your script by typing just your script
name from anywhere, leave out "python":
Admin
Returning to this 3 week old chestnut, (apologies for delay - my
second child was born in the interim), and thanks to all who attempted
to help, but I am still struggling with this issue.
Christopher Barker wrote:
If you have scripts you want to run from anywhere, make them
executable:
T
The fix I have working for this now is to use a symbolic link to the
directory where I keep my scripts.
Not quite as clean as just using the script name, but certainly better
than typing out a long direct path.
I see what you are saying. It didn't occur to me that Python would
not use an
I see what you are saying. It didn't occur to me that Python would not
use any of those variables, not even $PYTHONPATH. Thank you for
pointing that out.
I suppose the next best strategy should be to look into using a
terminal shortcut to at least make the "cd" to the directory a bit
less
Yes, I am aware that I could do that. I chose to only demonstrate the
full path method rather than both ways to access the file in my example.
The problem remains though, that every time I want to run a script in
that directory, I'd have to type out the entire path, which is not
ideal.
Su
The problem I am experiencing is that I can run a Python script
successfully if I use the full path to the script, but I can't run it
otherwise.
I have checked and set my $PATH as well as $PYTHONPATH to be correct.
Also, the sys.path has a correct reference. I have also confirmed that
per