def __runCommand(d): POVRayApp = os.path.join(config.POVRayPath, 'pvengine.exe').replace("\\", "/") if not os.path.isfile(POVRayApp): error_message = "Error: Could not find Pov-Ray in %s - aborting image generation" % os.path.dirname( POVRayApp) LicHelpers.writeLogEntry(error_message) print error_message return args = ['"' + POVRayApp + '"'] for key, value in d.items(): command = povCommands[key] if command: args.append(command[0] + command[1](value)) else: if key == 'inFile': args.insert( 1, value ) # Ensure input file is first command (after pvengine.exe itself) else: args.append(value) if config.writePOVRayActivity: LicHelpers.writeLogAccess(" ".join(args)) os.spawnv(os.P_WAIT, POVRayApp, args)
def __runCommand(d): l3pApp = os.path.join(config.L3PPath ,'l3p.exe').replace("\\", "/") if not os.path.isfile(l3pApp): error_message = "Error: Could not find L3P.exe in %s - aborting image generation" % os.path.dirname(l3pApp) LicHelpers.writeLogEntry(error_message) print error_message return args = [l3pApp] mode = os.P_WAIT for key, value in d.items(): command = l3pCommands[key] if command: args.append(command[0] + command[1](value)) else: if key == 'inFile': args.insert(1, value) # Ensure input file is first command (after l3p.exe itself) else: args.append(value) if config.writeL3PActivity: LicHelpers.writeLogAccess(" ".join(args)) if sys.platform == 'win32': mode = os.P_DETACH os.spawnv(mode, l3pApp, args)
def __runCommand(d): l3pApp = os.path.join(config.L3PPath, 'l3p.exe').replace("\\", "/") if not os.path.isfile(l3pApp): error_message = "Error: Could not find L3P.exe in %s - aborting image generation" % os.path.dirname( l3pApp) LicHelpers.writeLogEntry(error_message) print error_message return args = [l3pApp] mode = os.P_WAIT for key, value in d.items(): command = l3pCommands[key] if command: args.append(command[0] + command[1](value)) else: if key == 'inFile': args.insert( 1, value ) # Ensure input file is first command (after l3p.exe itself) else: args.append(value) if config.writeL3PActivity: LicHelpers.writeLogAccess(" ".join(args)) if sys.platform == 'win32': mode = os.P_DETACH os.spawnv(mode, l3pApp, args)
def __runCommand(d): POVRayApp = os.path.join(config.POVRayPath, 'pvengine.exe').replace("\\", "/") if not os.path.isfile(POVRayApp): error_message = "Error: Could not find Pov-Ray in %s - aborting image generation" % os.path.dirname(POVRayApp) LicHelpers.writeLogEntry(error_message) print error_message return args = ['"' + POVRayApp + '"'] for key, value in d.items(): command = povCommands[key] if command: args.append(command[0] + command[1](value)) else: if key == 'inFile': args.insert(1, value) # Ensure input file is first command (after pvengine.exe itself) else: args.append(value) if config.writePOVRayActivity: LicHelpers.writeLogAccess(" ".join(args)) os.spawnv(os.P_WAIT, POVRayApp, args)