mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -119,6 +119,8 @@ class Develop(Command):
|
|||||||
path=self.path, resources=self.resources,
|
path=self.path, resources=self.resources,
|
||||||
extensions=self.extensions)
|
extensions=self.extensions)
|
||||||
path = self.j(self.bindir, name)
|
path = self.j(self.bindir, name)
|
||||||
|
if not os.path.exists(self.bindir):
|
||||||
|
os.makedirs(self.bindir)
|
||||||
self.info('Installing binary:', path)
|
self.info('Installing binary:', path)
|
||||||
open(path, 'wb').write(script)
|
open(path, 'wb').write(script)
|
||||||
os.chmod(path, self.MODE)
|
os.chmod(path, self.MODE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user