Merge pull request #3 from jgoguen/make-plugin-dir-during-build

Create plugins dir if it doesn't exist
This commit is contained in:
Kovid Goyal 2013-05-31 18:57:49 -07:00
commit 86b2898a9c

View File

@ -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)