mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Linux installer: Allow using ~ when specifying the installation directory
This commit is contained in:
		
							parent
							
								
									9d9d618c88
								
							
						
					
					
						commit
						d0bb89c740
					
				@ -628,7 +628,7 @@ def check_version():
 | 
			
		||||
        calibre_version = urllib.urlopen('http://status.calibre-ebook.com/latest').read()
 | 
			
		||||
 | 
			
		||||
def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None):
 | 
			
		||||
    destdir = os.path.abspath(install_dir or '/opt')
 | 
			
		||||
    destdir = os.path.abspath(os.path.expanduser(install_dir or '/opt'))
 | 
			
		||||
    if destdir == '/usr/bin':
 | 
			
		||||
        prints(destdir, 'is not a valid install location. Choose', end='')
 | 
			
		||||
        prints('a location like /opt or /usr/local')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user