old_contents: '''A module to manage task rendering in blender'''
  import bpy, sys
  sys.path.append("'''+scriptPath+'''")
  
  
  def RenderingTask(task, preferences, groups, preset):
  	scene = bpy.data.scenes[task.scene]
  	bpy.context.screen.scene = scene
  	sceneInfo = task.info.scenes[task.scene]
  	scene.frame_start = sceneInfo.start
  	scene.frame_end = sceneInfo.end
  	scene.render.fps = sceneInfo.fps
  	
  	for name, RL in scene.render.layers.items():
  		RL.use = sceneInfo.renderlayers[name].use
  	
  	
  
new_contents: '''A module to manage task rendering in blender'''
  import bpy, sys, os
  sys.path.append(os.path.abspath(sys.argv[4]+'/../../../..'))
  from Preferences.PresetList.Preset.Preset import *
  
  def RenderingTask(task, preferences, groups, preset):
  	scene = bpy.data.scenes[task.scene]
  	bpy.context.screen.scene = scene
  	sceneInfo = task.info.scenes[task.scene]
  	scene.frame_start = sceneInfo.start
  	scene.frame_end = sceneInfo.end
  	scene.render.fps = sceneInfo.fps
  	
  	for name, RL in scene.render.layers.items():
  		RL.use = sceneInfo.renderlayers[name].use
  	
  	if type(preset) is Preset:
  		print('\033[31mit\'s a preset!\033[0m')
  	else:
  		print('\033[31mit\'s a '+str(type(preset))+'!\033[0m')
  
  
  
  
  
  
  
  
  
subject: check if a preset or a metapreset is used