mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:03:53 +02: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
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