diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-08-04 12:19:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 12:19:26 +0300 |
commit | 9aa6e5c68ad689eef733dd07b3ec662b89f9fb87 (patch) | |
tree | 9a135c248cc69932ab37cd9e6b419dca69eb42d1 /collectors/python.d.plugin/python_modules | |
parent | 7d7f497821fdaacf5437e2f7148bc944f8e89c47 (diff) |
python.d: fix `find_binary` (#9641)
Diffstat (limited to 'collectors/python.d.plugin/python_modules')
-rw-r--r-- | collectors/python.d.plugin/python_modules/bases/collection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/python_modules/bases/collection.py b/collectors/python.d.plugin/python_modules/bases/collection.py index fe084332f7..93bf8cf059 100644 --- a/collectors/python.d.plugin/python_modules/bases/collection.py +++ b/collectors/python.d.plugin/python_modules/bases/collection.py @@ -77,7 +77,7 @@ def find_binary(binary): :return: """ for directory in PATH: - binary_name = '/'.join([directory, binary]) + binary_name = os.path.join(directory, binary) if os.path.isfile(binary_name) and os.access(binary_name, os.X_OK): return binary_name return None |