]> granicus.if.org Git - python/commitdiff
Got rid of macfs
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 5 Feb 2003 15:44:03 +0000 (15:44 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 5 Feb 2003 15:44:03 +0000 (15:44 +0000)
Lib/plat-mac/cfmfile.py

index 63d7233cae0bdebd55ae383b1e14d1c7ff3303bb..a4eecf23be833c57f699d5b0f5aada6cf4643297 100644 (file)
@@ -5,7 +5,7 @@
 __version__ = "0.8b3"
 __author__ = "jvr"
 
-import macfs
+import Carbon.File
 import struct
 from Carbon import Res
 import os
@@ -28,10 +28,8 @@ def mergecfmfiles(srclist, dst, architecture = 'fat'):
        
        srclist = list(srclist)
        for i in range(len(srclist)):
-               if type(srclist[i]) == macfs.FSSpecType:
-                       srclist[i] = srclist[i].as_pathname()
-       if type(dst) == macfs.FSSpecType:
-               dst = dst.as_pathname()
+               srclist[i] = Carbon.File.pathname(srclist[i])
+       dst = Carbon.File.pathname(dst)
        
        dstfile = open(dst, "wb")
        rf = Res.FSpOpenResFile(dst, 3)