Sen. Diane Savino is confident a vote will be held in the state Senate on a measure that would legalize medical marijuana in the next two weeks.

“I feel very confident we’re going to get it done by the end of the session,” she told reporters when asked about whether Senate Republican Leader Dean Skelos would allow a vote on the bill. “Let’s just say I’m very confident the bill is going to come to the floor.”

Lawmakers in the Senate and Assembly over the weekend reached an agreement that would reconcile the different measures for medical marijuana.

Gov. Andrew Cuomo told reporters earlier in the day he would consider signing the legislation, as long as the proper controls are in place.

“If their piece of legislation, the legislation makes sense, then I would sign it because I support the overall effort,” Cuomo said.

It’s the furthest Cuomo has gone when asked about the measure, known commonly as the Compassionate Care Act.

The governor last week announced he would create a pilot program for medicinal marijuana, but the idea was blasted by advocates for not going far enough.

The bill has picked up Republican supporters in the state Senate from across different regions of upstate New York as well as several GOP sponsors.

The Senate Health Committee voted to send the measure to the Senate Finance Committee last month, but Skelos has given no indication as to whether he’d allow a floor vote.

Nevertheless, time is running out for the measure. The legislative session is scheduled to end next week with a host of unresolved measures up in the air.

Savino, a Staten Island Democrat and member of the Independent Democratic Conference, insisted the current agreement was the best lawmakers could do.

“I believe the current form of the bill is as good as it gets. It is the tightest, most regulated piece of legislation that will effect the medical marijuana industry in this country,” she said.