mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05: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,
 | 
			
		||||
                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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user