All pastes #330502 Raw Edit

Anonymous

public python v1 · immutable
#330502 ·published 2007-01-27 23:29 UTC
rendered paste body
if typeString not in Globals.DEFAULT_INSTRUMENTS:			# do some stuff			for instr in Globals.getCachedInstruments():				if typeString == instr[1]:					instr_path = os.path.join(Globals.INSTR_PATHS[1], typeString + ".instr")					image_path = instr[3]					try:						os.remove(instr_path)						os.remove(image_path)					except:						return 2					#try:					cached_instr = [x for x in Globals.getCachedInstruments() if x[1] == typeString]					print cached_instr					print Globals.instrumentPropertyList					Globals.instrumentPropertyList.remove(cached_instr)										#except:					#	return 3		else:			return 1