Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 4ac0fc8c3b11a4b760159f9f87661824b20958aa authored by cvs2svn on 26 January 2005, 04:55:57 UTC
This commit was manufactured by cvs2svn to create tag 'r235c1'.
Tip revision: 4ac0fc8
makedisk.py
import Disk_Copy
import macfs
import sys

talker = Disk_Copy.Disk_Copy(start=1)
talker.activate()
filespec = macfs.FSSpec('my disk image.img')
try:
	objref = talker.create('my disk image', saving_as=filespec, leave_image_mounted=1)
except Disk_Copy.Error, arg:
	print "ERROR: my disk image:", arg
else:
	print 'objref=', objref
print 'Type return to exit-'
sys.stdin.readline()
back to top