Andy Murray says refusing to “feel sorry” for himself helped him make the French Open for what is expected to be the final time.