Hi, Shaowei,
I don't think it works in that way. The following two solutions should work:
(1) Perform DFT and orbital localization using Molpro, but save MOs/LMOs into separate files.
For example, the Molpro input file can be
```
***, acrolein dft
memory,100,m
geometry=
acrolein_s0.xyzbasis=vdz
rks,b3lyp,disp=d3
put,molden,acrolein.molden,NEW;orbital,2100.2
{locali
method,pipek
save,2400.2
}
put,molden,acrolein_lmo.molden,NEW;orbital,2400.2
```
Now you save KS-DFT canonical MOs and LMOs into two different .molden files. If you want to visualize orbitals, you can convert them into .fch(k) files and open via GaussView/Multiwfn. For example, run
```
molden2fch
acrolein_lmo.molden -molpro
```
(2) Perform DFT using
Molpro, and perform orbital localization using MOKIT.
After you accomplished your KS-DFT calculation and obtain the file `acrolein.molden`. You can run
```
molden2fch
acrolein.molden -molpro
```
to generate `acrolein.fch`. So you can use Python API in MOKIT to perform orbital localization, e.g.
```python
from mokit.lib.gaussian import loc
loc(fchname='acrolein.fch',idx=range(15))
```
Then you obtain `acrolein_LMO.fch`, in which the Pipek-Mezey LMOs are kept. You can use the utility `fch2com` to generate Molpro input and orbital file again, e.g.
```
fch2com acrolein_LMO.fch
```
In this approach, the point group symmetry would be turned off in `acrolein_LMO.com`.
Good luck.