mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-13 23:34:21 +01:00
IGN:develop and install commands will now create --bindir if it does not already exist
This commit is contained in:
parent
cc11f188b3
commit
c26f8933a5
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ def write_template(self, opts, name, mod, func):
|
|||
path=self.path, resources=self.resources,
|
||||
extensions=self.extensions)
|
||||
path = self.j(self.bindir, name)
|
||||
if not os.path.exists(self.bindir):
|
||||
os.makedirs(self.bindir)
|
||||
self.info('Installing binary:', path)
|
||||
open(path, 'wb').write(script)
|
||||
os.chmod(path, self.MODE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue