From: Diane Trout Date: Wed, 1 Nov 2006 23:55:26 +0000 (+0000) Subject: allow copying files into a dmg X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=59fb19dbf756d0ac19fe7b0b17d374fbcfd894fe allow copying files into a dmg the manual is a .html file that needed to be copied into the dmg which required a small update to osxdist.py --- diff --git a/makelib/osxdist.py b/makelib/osxdist.py index b6b6134..397832e 100644 --- a/makelib/osxdist.py +++ b/makelib/osxdist.py @@ -104,7 +104,10 @@ def makedmg(dirlist, volname): if d[-1] == '/': d = d[:-1] tail = os.path.split(d)[-1] - copytree(d, os.path.join(mount_point, tail)) + if (os.path.isdir(d)): + copytree(d, os.path.join(mount_point, tail)) + else: + copy(d, os.path.join(mount_point, tail)) call(['hdiutil','detach',mount_point]) call(['hdiutil','convert',rwdmg,'-format','UDZO','-o',dmg])