mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 02:33:11 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -535,6 +535,8 @@ def path(x):
|
|||
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…
Reference in a new issue