changeset 256:909a3a079daf

readlinks does not do what we wnat on BSD
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 05 Jun 2012 21:42:12 +0200
parents 9852b3ef7234
children bbd1adb262fd
files enable.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/enable.sh	Wed Jun 06 01:06:11 2012 +0200
+++ b/enable.sh	Tue Jun 05 21:42:12 2012 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-here=`readlink -f "$0"`
+here=`python -c "import os; print os.path.realpath('$0')"`
 repo_root=`dirname "$here"`
 
 if !( hg --version -q | grep -qe 'version 2\.[1-9]' ); then