...underhood light assembly? ...Where does it mount? What path do the wires run? Where's the switch? Pictures would be great too. 
... It is mounted onto the 1/4" sound deadening pad, right in the middle of the hood. The wiring is hidden behind this pad, and run along side the driver-side hood hinge. Similar to other wirings underhood that go into the passenger compartment, this wiring would go into an insulated hole at the firewall, to be terminated at a possible fuse for those 12V lamps in the car. I took a couple photos but it is not convenient to upload right now.
BTW, the underhood light assembly P/N is F5RZ15702A, costs $CDN 31.63, $US 19.99 ?
Zack, before you hurry out to replace this one, you may try to verify if the mercury switch, presumably part of this assembly is properly level? At any rate, your mercury switch, if it is still functional, is always not level, with the hood up or down ?
I used a flat screw driver to simulate the hood latch closure, by pressing down the plate to see the latch grabbing down the hook, while the hood is up with the light is on. It did not turn off the light. The latch is not part of the switch!
Dave