mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge pull request #3 from jgoguen/make-plugin-dir-during-build
Create plugins dir if it doesn't exist
This commit is contained in:
commit
86b2898a9c
@ -535,6 +535,8 @@ class Build(Command):
|
|||||||
src = (glob.glob('*.so') + glob.glob('release/*.dll') +
|
src = (glob.glob('*.so') + glob.glob('release/*.dll') +
|
||||||
glob.glob('*.dylib'))
|
glob.glob('*.dylib'))
|
||||||
ext = 'pyd' if iswindows else 'so'
|
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))
|
shutil.copy2(src[0], self.j(dest, 'calibre_style.'+ext))
|
||||||
finally:
|
finally:
|
||||||
os.chdir(ocwd)
|
os.chdir(ocwd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user