2000-08-20 18:57:38 -03:00
|
|
|
import Disk_Copy
|
|
|
|
import macfs
|
|
|
|
import sys
|
|
|
|
|
|
|
|
talker = Disk_Copy.Disk_Copy(start=1)
|
|
|
|
talker.activate()
|
|
|
|
filespec = macfs.FSSpec('my disk image.img')
|
|
|
|
try:
|
2004-07-18 03:16:08 -03:00
|
|
|
objref = talker.create('my disk image', saving_as=filespec, leave_image_mounted=1)
|
2007-01-10 12:19:56 -04:00
|
|
|
except Disk_Copy.Error as arg:
|
2007-08-30 15:39:28 -03:00
|
|
|
print("ERROR: my disk image:", arg)
|
2000-08-20 18:57:38 -03:00
|
|
|
else:
|
2007-08-30 15:39:28 -03:00
|
|
|
print('objref=', objref)
|
|
|
|
print('Type return to exit-')
|
2000-08-20 18:57:38 -03:00
|
|
|
sys.stdin.readline()
|