Need to create a soft link to a file

Markus m.a.r.k at
Sun Sep 19 18:53:41 CEST 2004


I'm running on Mac OS X and need to create a soft link to a file.

I tried both makealias() and link(). While makealias creates a Finder 
alias just fine my application that needs to read the reference file 
doesn't like this. link() produces 1) a hard link and b) gives me the 
following error:  OSError: [Errno 45] Operation not supported

I guess what I'm looking for is a way to call the Unix ln command from 
within my python program.

How would I do this?


More information about the Python-list mailing list