[Pythonmac-SIG] Carbon.File and resolving aliases

Paul Donovan paul at donovansbrain.co.uk
Wed Jan 14 18:20:57 EST 2004


I'm trying to work out how to deal with aliases in Python 2.3 on 
Panther. Searching the archives I came across the macfs module, but the 
documentation says to consider it obsolete for 2.3 and use Carbon.File 
instead. Where would I find documentation on that?

The situation I'm trying to handle is very simple. I need to read a 
file in the user's home directory which is fairly likely to be an alias 
(it's the iTunes music library - people often put an alias to a shared 
library in /Users/Shared so that multiple users can share the same 
music library).

My non-alias aware code is simply:

	file = os.path.expanduser('~/Music/iTunes/iTunes Music Library.xml')

Any suggestions?

Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2377 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040114/226982e8/smime.bin


More information about the Pythonmac-SIG mailing list