def _sanitize_default(s):
 if s.startswith(BASEDIR):
  return s.replace(BASEDIR, '/usr/lib/python/site-packages')
 elif (s == MY_IP):
  return '10.0.0.1'
 elif (s == HOST):
  return 'cinder'
 elif (s.strip() != s):
  return ('"%s"' % s)
 return s

def _sanitize_default ( s ) : if s . startswith ( BASEDIR ) : return s . replace ( BASEDIR , '/usr/lib/python/site-packages' ) elif ( s == MY_IP ) : return '10.0.0.1' elif ( s == HOST ) : return 'cinder' elif ( s . strip ( ) != s ) : return ( '"%s"' % s ) return s
set up a reasonably sensible default for pybasedir .