Example #1
0
def clean(workingDir):

	#
	# Specific folders to wipe
	#
	
	dirlist = [
		projectname + '.egg-info',
		'dist',
		'build',
		'temp'
	]
	
	#
	# Delete all specific folders, including read only files
	#
	
	for item in dirlist:
		burger.deletedirectory(os.path.join(workingDir,item),True)

	#
	# Delete all versioned folders
	#
	
	nameList = os.listdir(workingDir)
	for item in nameList:
		if item.startswith(projectname+'-'):
			burger.deletedirectory(os.path.join(workingDir,item),True)
			
		
	#
	# Delete all *.pyc and *.pyo files (Recursively
	#
	
	cleanpycfiles(workingDir)