In QGIS 3.0 it is very easy. For instance our epsg is 2320:
QgsProject.instance().setCrs(QgsCoordinateReferenceSystem(2320))
In QGIS 3.0 it is very easy. For instance our epsg is 2320:
QgsProject.instance().setCrs(QgsCoordinateReferenceSystem(2320))