I am trying to import a .shp file and CSV file so that I can join data. I have written below code in Python console within QGIS. For Layer.isvalid(), I am getting False. I am using QGIS 3 and on Windows 7. I don't know where I am doing mistake. Since I am using Python console inside QGIS should I need to set enviorment variables?
layer = QgsVectorLayer("file:///C:Test/t1_2013_06_tract/t1_2013_06_tract.shp","BuildingLayer","ogr") layer.isValid()