From 340fe565d4d33b554a3036eef2dd3dbdc6bc6a4f Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 15 May 2013 16:47:50 -0700 Subject: Use realpath in addition to expanduser to locate spack directory. --- bin/spack | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/spack b/bin/spack index 26d34387b7..0a6d808342 100755 --- a/bin/spack +++ b/bin/spack @@ -5,7 +5,8 @@ import sys import argparse # Find spack's location and its prefix. -SPACK_FILE = os.environ["SPACK_FILE"] = os.path.expanduser(__file__) +SPACK_FILE = os.path.realpath(os.path.expanduser(__file__)) +os.environ["SPACK_FILE"] = SPACK_FILE SPACK_PREFIX = os.path.dirname(os.path.dirname(SPACK_FILE)) # Allow spack libs to be imported in our scripts -- cgit v1.2.3-70-g09d2