summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gobject-introspection/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gobject-introspection/package.py b/var/spack/repos/builtin/packages/gobject-introspection/package.py
index 20823fd77f..f31442f1f4 100644
--- a/var/spack/repos/builtin/packages/gobject-introspection/package.py
+++ b/var/spack/repos/builtin/packages/gobject-introspection/package.py
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
-from spack.paths import spack_root
+import spack.hooks.sbang as sbang
class GobjectIntrospection(Package):
@@ -72,7 +72,7 @@ class GobjectIntrospection(Package):
make("install")
def setup_build_environment(self, env):
- env.set('SPACK_SBANG', "%s/bin/sbang" % spack_root)
+ env.set('SPACK_SBANG', sbang.sbang_install_path())
@property
def parallel(self):