mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Only add dll dir if it exists
This commit is contained in:
parent
4db7497b8e
commit
0cf9450e80
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user