X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=src%2Fpython-lttngust%2Flttngust%2Fagent.py;h=58845b569c70ad75076872f11ce2e9de767c1adc;hp=69caad69492d66d0e7b1a2a4a83c530c3547fea8;hb=3287f48be61ef3491aff0a80b7185ac57b3d8a5d;hpb=47fa3e4ed7ab43e034dc61fc1480f919f4ee51d0 diff --git a/src/python-lttngust/lttngust/agent.py b/src/python-lttngust/lttngust/agent.py index 69caad69..58845b56 100644 --- a/src/python-lttngust/lttngust/agent.py +++ b/src/python-lttngust/lttngust/agent.py @@ -267,7 +267,13 @@ def _get_port_from_file(path): return port def _get_ust_app_path(): - return os.getenv('LTTNG_UST_APP_PATH') + paths = os.getenv('LTTNG_UST_APP_PATH') + if paths is None: + return paths + paths = paths.split(':') + if len(paths) > 1: + dbg._pwarning("':' separator in LTTNG_UST_APP_PATH, only the first path will be used") + return paths[0] def _get_user_home_path(): # $LTTNG_HOME overrides $HOME if it exists @@ -326,7 +332,7 @@ def _init_threads(): sys_port = None try: - if ust_app_port is not None: + if ust_app_port is not None: dbg._pdebug('creating ust_app client thread') t = threading.Thread(target=_client_thread_target, args=('ust_app', ust_app_port, reg_queue))