​P​resident Trump on Monday ​defended his idea of possibly inviting Russia to next year’s G-7 meeting and said he’ll take any political heat that comes from the decision.

“I don’t care politically,” Trump said during a news conference at the G-7 summit in Biarritz, France. “I’m going to run for election. … Whether I win or not, I have to do the right thing. I don’t do things for political reasons.”

Trump, who will host the 2020 gathering, reiterated that many of the world leaders at the weekend meeting have also felt the same way but added that no vote was taken.

“Having them inside the room is better than having them outside the room,” he said.

Trump went on to blame former President Barack Obama for forcing Russia out of the group after Russia illegally annexed Crimea from Ukraine in 2014.

“President Obama was not happy this happened because it was embarrassing to him,” Trump said. “He wanted Russia to be out of what was called the G-8. And that was his determination.”

​Trump said Russian President Vladimir Putin “outsmarted” Obama with the maneuver.

“And I can understand how President Obama would feel. He wasn’t happy, and they’re not in it for that reason,” Trump continued. ​