mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow the linux installer to work even if the installation location is a symlink
This commit is contained in:
parent
e41d08be9e
commit
5e8402c5ef
@ -645,7 +645,7 @@ def run_installer(install_dir, isolated, bin_dir, share_dir):
|
||||
prints(destdir, 'is not a valid install location. Choose', end='')
|
||||
prints('a location like /opt or /usr/local')
|
||||
return 1
|
||||
destdir = os.path.join(destdir, 'calibre')
|
||||
destdir = os.path.realpath(os.path.join(destdir, 'calibre'))
|
||||
if os.path.exists(destdir):
|
||||
if not os.path.isdir(destdir):
|
||||
prints(destdir, 'exists and is not a directory. Choose a location like /opt or /usr/local')
|
||||
|
Loading…
x
Reference in New Issue
Block a user