diff --git a/runner.py b/runner.py index e1ed2bd4b..1ac4efc8d 100755 --- a/runner.py +++ b/runner.py @@ -448,8 +448,8 @@ def update_and_insert_specs(self): if len(hardware_info_root.get_root_list()) > 0: python_file = os.path.abspath(os.path.join(CURRENT_DIR, 'lib/hardware_info_root.py')) - ps = subprocess.run(['sudo', '/usr/bin/env python3', python_file], - stdout=subprocess.PIPE, check=True, encoding='UTF-8') + ps = subprocess.run([f"sudo /usr/bin/env python3 {python_file}"], + stdout=subprocess.PIPE, check=True, encoding='UTF-8', shell=True) machine_specs_root = json.loads(ps.stdout) machine_specs.update(machine_specs_root)