I know I can pull a vector file into my current project using:
vlayer = iface.addVectorLayer(r"S:/Data/Natural_Earth_quick_start/110m_cultural/ne_110m_admin_0_countries.shp", "admin", "ogr")
But if I create my layer using something like:
vlayer = QgsVectorLayer(r"S:/Data/Natural_Earth_quick_start/110m_cultural/ne_110m_admin_0_countries.shp", "admin", "ogr")
and then I do some processing on vlayer
how do I then add it to the current project or map layers list?
QgsProject.instance().addMapLayer(vlayer)
?QgsVectorLayer
to the project docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/…