mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
If the destination directory for calibre_style doesn't exist, create it before trying to copy there
This commit is contained in:
parent
26a9b30db1
commit
876e0d662f
@ -535,6 +535,8 @@ class Build(Command):
|
||||
src = (glob.glob('*.so') + glob.glob('release/*.dll') +
|
||||
glob.glob('*.dylib'))
|
||||
ext = 'pyd' if iswindows else 'so'
|
||||
if not os.path.exists(dest):
|
||||
os.makedirs(dest)
|
||||
shutil.copy2(src[0], self.j(dest, 'calibre_style.'+ext))
|
||||
finally:
|
||||
os.chdir(ocwd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user