X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=usertools%2Fdpdk-telemetry.py;h=181859658faa951c0eaf198fcc87c407bf451c47;hb=c13f84a71b2d32cf60c1f2369854ca7ecfe98502;hp=afbf01b196bd2d5ba418eab635d99d56c06d2667;hpb=6a2967c112a3aa36c903b1554202732dcb2dd190;p=dpdk.git diff --git a/usertools/dpdk-telemetry.py b/usertools/dpdk-telemetry.py index afbf01b196..181859658f 100755 --- a/usertools/dpdk-telemetry.py +++ b/usertools/dpdk-telemetry.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2020 Intel Corporation @@ -78,6 +78,6 @@ readline.set_completer_delims(readline.get_completer_delims().replace('/', '')) for f in glob.glob('/var/run/dpdk/*/dpdk_telemetry.%s' % TELEMETRY_VERSION): handle_socket(f) # Path to sockets for processes run as a regular user -for f in glob.glob('/run/user/%d/dpdk/*/dpdk_telemetry.%s' % - (os.getuid(), TELEMETRY_VERSION)): +for f in glob.glob('%s/dpdk/*/dpdk_telemetry.%s' % + (os.environ.get('XDG_RUNTIME_DIR', '/tmp'), TELEMETRY_VERSION)): handle_socket(f)