From 6ed7bb011f7c7bd77c0e3a1802e3381d6bf3d8a5 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 6 Jun 2018 18:30:40 -0600 Subject: [PATCH] Make template filler more BSD friendly --- .project-template/fill_template_vars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.project-template/fill_template_vars.sh b/.project-template/fill_template_vars.sh index 1e76d8a..f09e8ff 100755 --- a/.project-template/fill_template_vars.sh +++ b/.project-template/fill_template_vars.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset set -o pipefail -PROJECT_ROOT=$(dirname $(dirname $(readlink -f $0))) +PROJECT_ROOT=$(dirname $(dirname $(python -c 'import os, sys; sys.stdout.write(os.path.realpath(sys.argv[1]))' "$0"))) echo "What is your python module name?" read MODULE_NAME