The sight and smell of Christmas before Thanksgiving was simply too much for one Manhattan landlord — so he took a curbside tree vendor to court Wednesday, seeking to enforce an obscure city law that bars the sale of the trees on streets before Dec. 1.

Well-connected real-estate mogul Donald Zucker filed suit on Wednesday seeking an emergency court order to bar the tree seller from the sidewalk in front of his high-rise at 77 W. 15th St.

Evergreen Stand, a Wisconsin-based Christmas-tree company, set up shop outside the Flatiron District building at Sixth Avenue on Nov. 24.

Zucker asked the vendors to move their operation down the street, the suit says, but they refused, so Zucker resorted to suing them.

“Unless the Evergreen Stand is immediately stopped, defendants will continue to mount Christmas trees on the stand, making removal of the trees extremely difficult,” he gripes in the suit.

The landlord says the fragrant greenery clogs pedestrian traffic and takes up parking spots.

Zucker, 83, a Long Island resident who served in advisory positions under Mayors Ed Koch and Rudy Giuliani, isn’t the first powerful person to spoil the merriment.

In 1938, Mayor Fiorello La Guardia launched what became known as his “War on Christmas,” cracking down on street markets by requiring the largely immigrant peddlers — including those selling evergreens — to obtain licenses that were nearly impossible to get.

The regulations led to a public outcry when Christmas trees suddenly disappeared from the streets, so the City Council intervened and passed the “coniferous tree” exception, allowing the sales of the trees without a license — but only during the month of December.

Zucker’s lawyer, Raymond Bragar, told The Post Evergreen needs the landlord’s permission to sell trees in front of his building. Bragar insists his client isn’t a Scrooge, but brought the suit only following complaints from residents.

A spokeswoman for the building said the suit was ultimately withdrawn late Wednesday after a Manhattan Supreme Court judge refused to hear the case under expedited review because the Evergreen Stand owners could not be located to defend their business.

But Zucker spokeswoman Alice McGillion said the landlord isn’t giving up on his crusade.

“They’ll try it again at the end of the season,” she vowed, hoping to bar the trees next year.