I don't think you can use the '~' shortcut in python:
>>> os.path.exists('~/.bashrc')
False
>>> os.path.exists('/Users/steve/.bashrc')
True
-steve
On Aug 4, 2005, at 9:20 AM, Schollnick, Benjamin wrote:
> Folks,
>
> This is strange... But I suspect it is a permissions issue
>
> 1) I can
Hi Folks,
I'm guessing this is supposed to be easy.. but I've spend a good
chunk of time searching for an approach, but none of the suggestions
I've found is working for me. ;-( I need to 'manually' send a keyDown
event (left arrow actually) to a QTMovieView instance. The movie view
is in
Beware.. initWithURL_error_() returns a tuple.. the first element of
the tuple is the QTMovie, the second is (presumably) the error. I
think it's because python has no concept of a 'pointer to memory', so
rather than pass in a pointer, you get a 'tuple' return value.
-steve
On Jul 1, 2005,
Hi Henning,
def startElement(self, name, attrs):
self._queue.append(name) # keep the order of processed tags
handler = str('_start_'+name)
if hasattr(self, handler):
self.__class__.__dict__[handler](self, attrs)
Is there a better syntax for self.__class__.__dict__[handler]?
ho
Hi Folks,
Back in the pretty old days (python 1.5 or so I think) I developed a
Macromedia Director (MMD) scripting Xtra that allowed Lingo scripts to
use python as an embedded language. It worked great... but I moved on
and haven't done anything Carbon in years. Now I find myself in a
situation