mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Add environment variable that sets proot's tmp dir
Only really useful with patched proot containing tmpdir fix
This commit is contained in:
@@ -345,6 +345,8 @@ class BaseTask(Task):
|
|||||||
if local_site_packages not in python_paths:
|
if local_site_packages not in python_paths:
|
||||||
python_paths.insert(0, local_site_packages)
|
python_paths.insert(0, local_site_packages)
|
||||||
env['PYTHONPATH'] = os.pathsep.join(python_paths)
|
env['PYTHONPATH'] = os.pathsep.join(python_paths)
|
||||||
|
if self.should_use_proot:
|
||||||
|
env['PROOT_TMP_DIR'] = settings.AWX_PROOT_BASE_PATH
|
||||||
return env
|
return env
|
||||||
|
|
||||||
def build_safe_env(self, instance, **kwargs):
|
def build_safe_env(self, instance, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user