summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index 51dbce695b..e9278ddc4c 100755
--- a/bin/spack
+++ b/bin/spack
@@ -43,6 +43,10 @@ sys.path.insert(0, spack_lib_path)
# Add external libs
spack_external_libs = os.path.join(spack_lib_path, "external")
+
+if sys.version_info[:2] == (2, 6):
+ sys.path.insert(0, os.path.join(spack_external_libs, 'py26'))
+
sys.path.insert(0, spack_external_libs)
# Handle vendoring of YAML specially, as it has two versions.