def removePYfiles(self, pathToScrape='', optionalExt='.py'):
		completeSuccess = True
		logger.info("Removing %s files from : '%s'" % (optionalExt, pathToScrape))				
		
		if not pathToScrape:
			pathToScrape = self.networkLoc
		
		count = 0
		for pyFile in Path(pathToScrape).walkfiles('*%s' % optionalExt):
			# skip Mobu/Maya startup files
			if "pcsGlobalSetup.py" in pyFile or "gVarInit.py" in pyFile or "sysGlobalMenu.py" in pyFile:
				# make non-readOnly
				pyFile.makeWritable()
				continue
			# template files need to stay
			if not "mayaMenuBoot.py" in pyFile:
				if not "teamMenu.py" in pyFile and not "teamMenuBoot.py" in pyFile:
						try:
							if Path(pyFile).isReadOnly:
								Path(pyFile).makeWritable()
							os.remove(pyFile)
							logger.debug("Removing: '%s'" % pyFile)
							count += 1
						except:
							logger.info("Failed to remove: '%s'" % pyFile)
							completeSuccess = False
						
		print "Removed %d %s files from : '%s'" % (count, optionalExt, pathToScrape)
		logger.info("Removed %d %s files from : '%s'" % (count, optionalExt, pathToScrape))
		
		print "**********************************"
		print "Remove %s complete." % optionalExt
		print "**********************************"
		logger.info("**********************************")
		logger.info("Remove %s complete." % optionalExt)
		logger.info("**********************************")
						
		return completeSuccess
Compile JST templates into a javascript module.
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/common/build/buildPipeline.py/PipelineBuild.removePYfiles--crossover with--dataset/ETHPy150Open pandaproject/panda/client/views.py/jst