From 0cf9450e8009cbcff77ec9536bc2b16e7fd222de Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Oct 2024 19:23:38 +0530 Subject: [PATCH] Only add dll dir if it exists --- setup/win-ci.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/win-ci.py b/setup/win-ci.py index 9ce0d555cc..a310117ece 100644 --- a/setup/win-ci.py +++ b/setup/win-ci.py @@ -86,7 +86,9 @@ def setup_env(): os.environ['CI'] = 'true' os.environ['OPENSSL_MODULES'] = os.path.join(SW, 'lib', 'ossl-modules') os.environ['PIPER_TTS_DIR'] = os.path.join(SW, 'piper') - os.add_dll_directory(os.path.join(SW, 'ffmpeg', 'bin')) + ffmpeg_dll_dir = os.path.join(SW, 'ffmpeg', 'bin') + if os.path.exists(ffmpeg_dll_dir): # doesnt exist in install phase + os.add_dll_directory(ffmpeg_dll_dir) def main():