How to use the vapoursynth.vpy_current_environment function in VapourSynth

To help you get started, we’ve selected a few VapourSynth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Irrational-Encoding-Wizardry / yuuno / yuuno_ipython / ipy_vs / vsscript.py View on Github external
def get_current_env() -> 'Environment':
    global _cur_env
    if _cur_env is None:
        import vapoursynth
        _cur_env = vapoursynth.vpy_current_environment
    try:
        _cur_env()
    except RuntimeError:
        return None
github Irrational-Encoding-Wizardry / yuuno / yuuno_ipython / ipy_vs / vsscript.py View on Github external
    return script.perform(lambda: vapoursynth.vpy_current_environment()).result()
github Irrational-Encoding-Wizardry / yuuno / yuuno_ipython / comm / output_mirror.py View on Github external
    env = vss.get('ipython').perform(lambda: vs.vpy_current_environment()).result()
    with env: