necessity is the mother of invention; there's always a way if you look for it
Proverb meaning that when one is in a tight spot, a solution will present itself if one searches earnestly.
I was in trouble without money, but necessity is the mother of invention—a friend introduced me to a job.
The deadline was approaching, but there's always a way if you look for it—I somehow came up with an idea.
From the maxim 窮すれば則ち変じ、変ずれば則ち通ず in the Chinese classic 『易経』: when circumstances reach an impasse they change, and through change a way opens.