parameters: ()
docstring: Returns the value of $XDG_RUNTIME_DIR, a directory path.
  
      If the value is not set, returns the same default as in Qt5
docstring_summary: Returns the value of $XDG_RUNTIME_DIR, a directory path.
docstring_tokens: Returns the value of $XDG_RUNTIME_DIR a directory path .
function: def get_runtime_dir():
      """Returns the value of $XDG_RUNTIME_DIR, a directory path.
  
      If the value is not set, returns the same default as in Qt5
      """
      try:
          return os.environ['XDG_RUNTIME_DIR']
      except KeyError:
          fallback = os.path.join(tempfile.gettempdir(), 'runtime-' + os.environ['USER'])
          return fallback
function_tokens: def get_runtime_dir ( ) : try : return os . environ [ 'XDG_RUNTIME_DIR' ] except KeyError : fallback = os . path . join ( tempfile . gettempdir ( ) , 'runtime-' + os . environ [ 'USER' ] ) return fallback