The authors develop a method to measure the coupling between a single photon source and any arbitrary photonic structure having constant density of electromagnetic states over the linewidth of the emitter. They demonstrate this method by an experiment on a single molecule coupled to an interrupted nanophotonic waveguide.