testing/xvfb.py
def _set_xdg_runtime_dir(env):
  """Sets the $XDG_RUNTIME_DIR variable if it hasn't been set before."""
  runtime_dir = env.get('XDG_RUNTIME_DIR')
  if not runtime_dir:
    runtime_dir = '/tmp/xdg-tmp-dir/'
    if not os.path.exists(runtime_dir):
      os.makedirs(runtime_dir, 0o700)
    env['XDG_RUNTIME_DIR'] = runtime_dir
Sets the $XDG_RUNTIME_DIR variable if it hasn't been set before.
Sets the $XDG_RUNTIME_DIR variable if it hasn't been set before.
Sets the $XDG_RUNTIME_DIR variable if it hasn ' t been set before .
def _set_xdg_runtime_dir(env):
  runtime_dir = env.get('XDG_RUNTIME_DIR')
  if not runtime_dir:
    runtime_dir = '/tmp/xdg-tmp-dir/'
    if not os.path.exists(runtime_dir):
      os.makedirs(runtime_dir, 0o700)
    env['XDG_RUNTIME_DIR'] = runtime_dir
def _set_xdg_runtime_dir ( env ) : runtime_dir = env . get ( 'XDG_RUNTIME_DIR' ) if not runtime_dir : runtime_dir = '/tmp/xdg-tmp-dir/' if not os . path . exists ( runtime_dir ) : os . makedirs ( runtime_dir , 0o700 ) env [ 'XDG_RUNTIME_DIR' ] = runtime_dir
Sets the $XDG_RUNTIME_DIR variable if it hasn't been set before.
Sets the $XDG_RUNTIME_DIR variable if it hasn ' t been set before .
"""Sets the $XDG_RUNTIME_DIR variable if it hasn't been set before."""
env