Browse Source

Improve pyenv-himport

Philippe Le Brouster 9 years ago
parent
commit
9678f641f2
1 changed files with 5 additions and 3 deletions
  1. 5 3
      utils/pyenv-himport

+ 5 - 3
utils/pyenv-himport

@@ -1,6 +1,8 @@
-#! /bin/sh
+#! /usr/bin/env bash
+
+UTILS_DIR=$(dirname "${BASH_SOURCE[0]}")
 
 # this script aim to initialise the environement.
-. $(dirname $0)/scripts.cfg
+. $UTILS_DIR/scripts.cfg
 
-./bin/himport $@
+$UTILS_DIR/../bin/himport $@