How to modify the mrg mode user variable output path in python

If it is a path type variable, it seems that it cannot be modified correctly