reframe: set PYTHONPATH at runtime (#25842)

This commit is contained in:
Harmen Stoppels 2021-09-14 15:54:14 +02:00 committed by GitHub
parent 1b633e1ca4
commit ce790a89f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,7 @@ def install(self, spec, prefix):
install_tree(self.stage.source_path, self.prefix)
def setup_run_environment(self, env):
env.prepend_path('PYTHONPATH', self.prefix)
if self.spec.version >= Version('3.0'):
if '+docs' in self.spec:
env.prepend_path('MANPATH', self.prefix.docs.man)