Shortest route is likely out the east gate of Yosemite (if you dare) then start driving south on 395.
Going out any west gate will be longer. Be aware that highway 140 is closed and the fire is within 3.5 miles of highway 41, so 41 might get closed soon. That will leave only highway 120 east and west gates.
2016 Keystone Cougar 303RLS
2015 Ford F350 diesel 6.7 4wd crew cab short bed Super Glide hitch Transfer Flow aux. fuel tank in tool box