I want to a load shapefile on QGIS start-up but when I add it I'm asked to save before I can add it.
I used following code for this:
c='' b=os.path.dirname(os.path.abspath (inspect.getfile(inspect.currentframe()))) c=os.path.abspath(os.path.join(b, os.pardir)) c=c+"/C_final.shp" layer=self.iface.addVectorLayer(c,"Country_map","ogr")
If I create macro then I am unable to find the path for shapefile. I want to make it path independent. If I add this shapefile and select the option project on launch and make it default project then it become path dependent.
How could I make it a path independent and open it on QGIS start-up?