Anonymous committed b9b39d4

remove .DS_Store and CVS/ directories from package tree.

  • Participants
  • Parent commits e4676dc

Comments (0)

Files changed (2)

File pyobjc/ChangeLog

+2002-11-27  Bill Bumgarner  <>
+	* automatically removes CVS directories and
+	.DS_Store files from tree before packaging.
 2002-11-25 Ronald Oussoren <>
 	* Examples/{TableModel, CurrencyConverter, Todo}:
 	  - Use NibClassBuilder module

File pyobjc/Scripts/

 os.mkdir(os.path.join(basedir, 'Developer', 'ProjectBuilder Extras'))
 os.mkdir(os.path.join(basedir, 'Developer', 'ProjectBuilder Extras', 'Project Templates'))
 os.mkdir(os.path.join(basedir, 'Developer', 'ProjectBuilder Extras', 'Project Templates', 'Application'))
-shutil.copytree('Project Templates/Cocoa-Python Application', os.path.join(basedir, 'Developer', 'ProjectBuilder Extras', 'Project Templates', 'Application', 'Cocoa-Python Application'))
+destination = os.path.join(basedir, 'Developer', 'ProjectBuilder Extras', 'Project Templates', 'Application', 'Cocoa-Python Application')
+shutil.copytree('Project Templates/Cocoa-Python Application', destination)
+def findCVS(irrelevant, dirName, names):
+	if '.DS_Store' in names:
+		os.remove( os.path.join(dirName, '.DS_Store') )
+	if dirName[-3:] == 'CVS':
+		while len(names): del names[0]
+		shutil.rmtree(dirName)
+os.path.walk(destination, findCVS, None)
 print 'Building package'
 pm = buildpkg.PackageMaker('PyObjC', package_version(),