Disconnect the wire at the oil pressure switch. If the warning light stays on, you've got a problem in the circuit back to the bulb.....if it goes out check/replace the oil pressure switch (sender).
If the warning light stays on (engine running) with a new switch, you've most likely got an oil pressure problem, and better get it tested.