i have a GUI made in pyside that render a blender file. This GUI have a resolution options to control this before render scene.... i have this code in PyCharm, i need to run this code without open blender.
    if resolutionWidth != 0:                 
        bpy.context.scene.render.resolution_x = resolutionWidth
    if resolutionHeight != 0:
        bpy.context.scene.render.resolution_y = resolutionHeight
    # Override Resolution Scale
    #SCALE = batchRender_UI.resolution_scaleUI()
    if SCALE != 0:                      
        bpy.context.scene.render.resolution_percentage = SCALE

 
     
    