expedient
ex-pe-di-ent
adjective
Convenient and practical, though possibly improper or immoral, for achieving a goal.
"It was an expedient solution, but not entirely ethical."
noun
A means of achieving an end, often quickly or conveniently, sometimes temporary.
"They used a temporary expedient to fix the problem."
Thesaurus
Synonyms: politic, carpetbagging, timeserving, opportunistic, advantageous, carpetbag, opportunist
Antonyms: inexpedient