Change default configuration

I am customizing privacyIDEA and I want to change default directories of privacyIDEA, for example, I want to change default directory from /etc/privacyidea to /etc/mydir.

Is there any common configuration that exists from we can change and it can reflect everywhere?

Also want to change the code structure like
/privacyidea/lib to /hitesh/lib
/privacyidea/api to /hitesh/api
.
.
/privacyidea/* to /hitesh/*

Immediate help would be highly appreciated!

It all starts with the pi.cfg file. Specify where this is and all other directories are specified in there.

https://privacyidea.readthedocs.io/en/latest/installation/system/inifile.html