From 5e8402c5eff91115acfe9c101ee70cd0321e2f85 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Jan 2016 14:33:27 +0530 Subject: [PATCH] Allow the linux installer to work even if the installation location is a symlink --- setup/linux-installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/linux-installer.py b/setup/linux-installer.py index ce761c7a35..6ffdd534e1 100644 --- a/setup/linux-installer.py +++ b/setup/linux-installer.py @@ -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')