def set_location(_option, _opt_str, value, parser):
 if (not os.path.exists(os.path.abspath(value))):
  debug.error("The requested file doesn't exist")
 if (parser.values.location == None):
  slashes = '//'
  if sys.platform.startswith('win'):
   slashes = ''
  parser.values.location = (('file:' + slashes) + urllib.pathname2url(os.path.abspath(value)))

def set_location ( _option , _opt_str , value , parser ) : if ( not os . path . exists ( os . path . abspath ( value ) ) ) : debug . error ( "The requested file doesn't exist" ) if ( parser . values . location == None ) : slashes = '//' if sys . platform . startswith ( 'win' ) : slashes = '' parser . values . location = ( ( 'file:' + slashes ) + urllib . pathname2url ( os . path . abspath ( value ) ) )
set node location information recursively .