[Pythonmac-SIG] findertools problems

Jack Jansen jack@oratrix.nl
Tue, 24 Jul 2001 13:42:39 +0200


> 
> 1. In findertools.py, the movetotrash() function throws up an error:
>     NameError: global name 'findertools' is not defined
> Should 'findertools.' be removed from the last line?

Yep, that's the right fix. Thanks!


> 2. When I do:
>     import finder
> I get back:
>     SystemError: NULL result without error in call_object

I can't repeat this (with the current CVS sources). Could you try again to see 
that it's no freak incident? If it isn't: please try again with "trace import 
statements" on and let me know the results.

> 3. Can anyone suggest a "proper" way to make a temporary backup of 
> files?
> Unfortunately, the shutil functions don't preserve resources, 
> type/creator,
> etc., so that's no good.  So I've fallen back on findertools.copy().

I think macostools.copy() is what you want to use here. A lot of the 
findertools methods have a counterpart in macostools, but where findertools 
calls on the finder macostools does it itself.

--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm