parameters: (Application)
docstring: Create a new application by copying the template
docstring_summary: Create a new application by copying the template
docstring_tokens: Create a new application by copying the template
function: def createApp(Application):
  	"""
  	Create a new application by copying the template
  	"""
  	# create directory ../Mod/<Application>
  	if not os.path.isdir("../Mod/"+Application):
  		os.mkdir("../Mod/"+Application)
  	else:
  		sys.stdout.write(Application + " already exists. Please enter another name.\n")
  		sys.exit()
  
  
  	# copying files from _TEMPLATEPY_ to ../Mod/<Application>
  	sys.stdout.write("Copying files...")
  	MakeAppTools.copyTemplate("_TEMPLATEPY_","../Mod/"+Application,"_TEMPLATEPY_", Application, SetupFilter(FilFilter),SetupFilter(DirFilter))
  	sys.stdout.write("Ok\n")
  
  	# replace the _TEMPLATEPY_ string by <Application>
  	sys.stdout.write("Modifying files...\n")
  	MakeAppTools.replaceTemplate("../Mod/" + Application,"_TEMPLATEPY_",Application)
  	MakeAppTools.replaceTemplate("../Mod/" + Application,"${CMAKE_SOURCE_DIR}/src/Tools/","${CMAKE_SOURCE_DIR}/src/Mod/")
  	# make the configure script executable
  	#os.chmod("../Mod/" + Application + "/configure", 0777);
  	sys.stdout.write("Modifying files done.\n")
  
  	sys.stdout.write(Application + " module created successfully.\n")
function_tokens: def createApp ( Application ) : # create directory ../Mod/<Application> if not os . path . isdir ( "../Mod/" + Application ) : os . mkdir ( "../Mod/" + Application ) else : sys . stdout . write ( Application + " already exists. Please enter another name.\n" ) sys . exit ( ) # copying files from _TEMPLATEPY_ to ../Mod/<Application> sys . stdout . write ( "Copying files..." ) MakeAppTools . copyTemplate ( "_TEMPLATEPY_" , "../Mod/" + Application , "_TEMPLATEPY_" , Application , SetupFilter ( FilFilter ) , SetupFilter ( DirFilter ) ) sys . stdout . write ( "Ok\n" ) # replace the _TEMPLATEPY_ string by <Application> sys . stdout . write ( "Modifying files...\n" ) MakeAppTools . replaceTemplate ( "../Mod/" + Application , "_TEMPLATEPY_" , Application ) MakeAppTools . replaceTemplate ( "../Mod/" + Application , "${CMAKE_SOURCE_DIR}/src/Tools/" , "${CMAKE_SOURCE_DIR}/src/Mod/" ) # make the configure script executable #os.chmod("../Mod/" + Application + "/configure", 0777); sys . stdout . write ( "Modifying files done.\n" ) sys . stdout . write ( Application + " module created successfully.\n" )