diff options
Diffstat (limited to 'src/allocators.py')
| -rw-r--r-- | src/allocators.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/allocators.py b/src/allocators.py index dbf26d1..717c500 100644 --- a/src/allocators.py +++ b/src/allocators.py @@ -12,8 +12,9 @@ allocators = {"libc": {"cmd_prefix" : "", for i, t in enumerate(maybe_allocators): try: - path = subprocess.check_output('whereis lib{} | cut -d":" -f2'.format(t), - shell=True, text=True).strip() + path = subprocess.run('whereis lib{} | cut -d":" -f2'.format(t), + shell=True, stdout=subprocess.PIPE, + universal_newlines=True).stdout.strip() if path != "": allocators[t] = {"cmd_prefix": "", "binary_suffix": "", |
