except (Exception) as e:
# Whatever happens here, we have to close the socket and
# retry to connect to the session daemon since either
- # the socket was closed, a network timeout occured, or
+ # the socket was closed, a network timeout occurred, or
# invalid data was received.
dbg._pdebug(self._debug('got exception: {}'.format(e)))
self._cleanup_socket()
def _get_user_home_path():
- # $LTTNG_HOME overrides $HOME if it exists
- return os.getenv('LTTNG_HOME', os.path.expanduser('~'))
+ # $LTTNG_UST_HOME overrides $LTTNG_HOME if it exist.
+ # In turn, $LTTNG_HOME overrides $HOME if it exists
+ return os.getenv('LTTNG_UST_HOME', os.getenv('LTTNG_HOME',
+ os.path.expanduser('~')))
_initialized = False