diff options
Diffstat (limited to 'lib/spack/spack/spec.py')
-rw-r--r-- | lib/spack/spack/spec.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 6524bf3bef..012a75c89c 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -1289,7 +1289,7 @@ class Spec(object): # have package.py files for. self._normal = normal self._concrete = concrete - self.external_path = external_path + self._external_path = external_path self.external_modules = Spec._format_module_list(external_modules) # This attribute is used to store custom information for @@ -1327,6 +1327,14 @@ class Spec(object): return modules @property + def external_path(self): + return pth.path_to_os_path(self._external_path)[0] + + @external_path.setter + def external_path(self, ext_path): + self._external_path = ext_path + + @property def external(self): return bool(self.external_path) or bool(self.external_modules) |