IGN:develop and install commands will now create --bindir if it does not already exist

This commit is contained in:
Kovid Goyal 2009-09-12 14:27:59 -06:00
parent cc11f188b3
commit c26f8933a5

View File

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