Add environment variable that sets proot's tmp dir

Only really useful with patched proot containing tmpdir fix
This commit is contained in:
Matthew Jones 2015-09-25 11:08:03 -04:00
parent 30d88b1829
commit 3a6807c5b4

View File

@ -345,6 +345,8 @@ class BaseTask(Task):
if local_site_packages not in python_paths:
python_paths.insert(0, local_site_packages)
env['PYTHONPATH'] = os.pathsep.join(python_paths)
if self.should_use_proot:
env['PROOT_TMP_DIR'] = settings.AWX_PROOT_BASE_PATH
return env
def build_safe_env(self, instance, **kwargs):