diff options
Diffstat (limited to 'Mac/Lib/macostools.py')
-rw-r--r-- | Mac/Lib/macostools.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Lib/macostools.py b/Mac/Lib/macostools.py index 374d3f1..c6035b4 100644 --- a/Mac/Lib/macostools.py +++ b/Mac/Lib/macostools.py @@ -30,12 +30,12 @@ def mkalias(src, dst, relative=None): """Create a finder alias""" srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) - if relative: - relativefss = macfs.FSSpec(relative) - # ik mag er geen None in stoppen :-( - alias = srcfss.NewAlias(relativefss) - else: - alias = srcfss.NewAlias() + if relative: + relativefss = macfs.FSSpec(relative) + # ik mag er geen None in stoppen :-( + alias = srcfss.NewAlias(relativefss) + else: + alias = srcfss.NewAlias() srcfinfo = srcfss.GetFInfo() Res.FSpCreateResFile(dstfss, srcfinfo.Creator, srcfinfo.Type, -1) |