Use os.path.realpath to allow symlinking to install
from e.g. /opt/redo/bin into /usr/local/bin (#21)
This commit is contained in:
parent
1ad6e8ca0d
commit
427deb199f
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ for dd in redo*.py; do
|
||||||
cat >install.wrapper <<-EOF
|
cat >install.wrapper <<-EOF
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import sys, os;
|
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'))
|
sys.path.insert(0, os.path.join(exedir, '../lib/redo'))
|
||||||
import $fix
|
import $fix
|
||||||
EOF
|
EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue