Re: [Pyobjc-dev] Buglet in mpkg installer
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2004-12-15 16:12:45
|
On Dec 15, 2004, at 10:13 AM, Ronald Oussoren wrote: > When installing pyobjc from subversion do not install the xcode > extras, those will remove existing xcode templates :-(. I will fix > that problem later today. Are you sure that the current version does this? I don't see anything in there that would trash anything that PyObjC didn't install. #!/usr/bin/env python import shutil, os for fn in ['/Library/Application Support/Apple/Developer Tools/Project Templates/00README.txt', '/Library/Application Support/Apple/Developer Tools/Project Templates/Cocoa-Python Application', '/Library/Application Support/Apple/Developer Tools/Project Templates/Cocoa-Python Document-based Application', '/Library/Application Support/Apple/Developer Tools/File Templates/Cocoa/Python class.pbfiletemplate', '/Library/Application Support/Apple/Developer Tools/File Templates/Cocoa/Python NIB class.pbfiletemplate', '/Library/Application Support/Apple/Developer Tools/File Templates/Pure Python/Python module.pbfiletemplate', '/Library/Application Support/Apple/Developer Tools/File Templates/Pure Python/Python tool.pbfiletemplate']: if os.path.isdir(fn): shutil.rmtree(fn, ignore_errors=True) elif os.path.exists(fn): os.unlink(fn) -bob |