From 427deb199f1ea6202693cdcac1410cc606234c91 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 13 Nov 2018 04:56:38 +0000 Subject: [PATCH] Use os.path.realpath to allow symlinking to install from e.g. /opt/redo/bin into /usr/local/bin (#21) --- install.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.do b/install.do index 9a736f0..ebd3f22 100644 --- a/install.do +++ b/install.do @@ -39,7 +39,7 @@ for dd in redo*.py; do cat >install.wrapper <<-EOF #!/usr/bin/python import sys, os; - exedir = os.path.dirname(os.path.abspath(sys.argv[0])) + exedir = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0]))) sys.path.insert(0, os.path.join(exedir, '../lib/redo')) import $fix EOF