summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pymol/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-pymol/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-pymol/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-pymol/package.py b/var/spack/repos/builtin/packages/py-pymol/package.py
index fe9bcce3a8..a4ab0b522d 100644
--- a/var/spack/repos/builtin/packages/py-pymol/package.py
+++ b/var/spack/repos/builtin/packages/py-pymol/package.py
@@ -58,7 +58,7 @@ class PyPymol(PythonPackage):
script = join_path(python_platlib, "pymol", "__init__.py")
shebang = "#!/bin/sh\n"
- fdata = 'exec {0} {1} "$@"'.format(self.spec["python"].command, script)
+ fdata = f'exec {python.path} {script} "$@"'
with open(fname, "w") as new:
new.write(shebang + fdata)
set_executable(fname)