3d-dart/server/plugins/FileSelector.py
def PluginCore(paramdict, inputlist):
	
	"""FileSelector does not need any input so inputlist is not used"""
	
	if len(inputlist) > 0:
		print "--> Selecting a file(s) for the batch sequence"

		jobdir = os.getcwd()
		for files in inputlist:
			if os.path.isfile(files):
				print("    * Found: %s" % files)	
				fname = os.path.basename(files)
				destination = os.path.join(jobdir,fname)
				shutil.copyfile(files,destination)
			else:
				print("    * Not found: %s" % files)
FileSelector does not need any input so inputlist is not used
FileSelector does not need any input so inputlist is not used
FileSelector does not need any input so inputlist is not used
def PluginCore(paramdict, inputlist):
	if len(inputlist) > 0:
		print "--> Selecting a file(s) for the batch sequence"
		jobdir = os.getcwd()
		for files in inputlist:
			if os.path.isfile(files):
				print("    * Found: %s" % files)	
				fname = os.path.basename(files)
				destination = os.path.join(jobdir,fname)
				shutil.copyfile(files,destination)
			else:
				print("    * Not found: %s" % files)
def PluginCore ( paramdict , inputlist ) : if len ( inputlist ) > 0 : print "--> Selecting a file(s) for the batch sequence" jobdir = os . getcwd ( ) for files in inputlist : if os . path . isfile ( files ) : print ( "    * Found: %s" % files ) fname = os . path . basename ( files ) destination = os . path . join ( jobdir , fname ) shutil . copyfile ( files , destination ) else : print ( "    * Not found: %s" % files )
FileSelector does not need any input so inputlist is not used
FileSelector does not need any input so inputlist is not used
"""FileSelector does not need any input so inputlist is not used"""
paramdict
inputlist