def _get_basis_file(cmd: str) -> str:
    (atomz_str, raw_basisname) = cmd.split(':')
    raw_basisname = raw_basisname.strip()
    atomz = int(atomz_str)
    basisname = _normalize_basisname(raw_basisname)
    thisdir = os.path.dirname(os.path.realpath(__file__))
    fname = ('%02d.gaussian94' % atomz)
    fdir = os.path.join(thisdir, '.database', basisname)
    fpath = os.path.join(fdir, fname)
    if (not os.path.exists(fpath)):
        print(('The %s basis for atomz %d does not exist, but we will download it' % (raw_basisname, atomz)))
        if (not os.path.exists(fdir)):
            os.makedirs(fdir)
        _download_basis(fpath, atomz, raw_basisname)
    return fpath
def _get_basis_file(cmd: str) -> str:
    (atomz_str, raw_basisname) = cmd.split(':')
    raw_basisname = raw_basisname.strip()
    atomz = int(atomz_str)
    basisname = _normalize_basisname(raw_basisname)
    thisdir = os.path.dirname(os.path.realpath(__file__))
    fname = ('%02d.gaussian94' % atomz)
    fdir = os.path.join(thisdir, '.database', basisname)
    fpath = os.path.join(fdir, fname)
    if (not os.path.exists(fpath)):
        print(('The %s basis for atomz %d does not exist, but we will download it' % (raw_basisname, atomz)))
        if (not os.path.exists(fdir)):
            os.makedirs(fdir)
        _download_basis(fpath, atomz, raw_basisname)
    return fpath