In Photos preference, click on the "Use as System Photo Library"; this regenerates the path to your library.