Is there a general method for switching between PCB power sources?
A relay would be a nice easy solution. The circuit below would power the load from the battery until you applied CPU power. Keep in mind there will be a brief changeover period where no power is applied; as long as this is ok this is an easy way. 







simulate this circuit &ndash; Schematic created using CircuitLab