parameters: (fname, base_dir)
return_statement: return fname
docstring: Convert a relative filename if we have a base directory.
docstring_summary: Convert a relative filename if we have a base directory.
docstring_tokens: Convert a relative filename if we have a base directory .
function: def _file_name(fname, base_dir):
          """ Convert a relative filename if we have a base directory. """
  
          fname = fname.replace("\\", "\\\\")
  
          if base_dir != '' and fname[0] != ':' and not os.path.isabs(fname):
              fname = os.path.join(base_dir, fname)
  
          return fname
function_tokens: def _file_name ( fname , base_dir ) : fname = fname . replace ( "\\" , "\\\\" ) if base_dir != '' and fname [ 0 ] != ':' and not os . path . isabs ( fname ) : fname = os . path . join ( base_dir , fname ) return fname