Need more program help!

Discussion created by MLCouden on May 4, 2012
Latest reply on May 4, 2012 by bruce.nielsen
I am still having trouble referencing the shapefile to Add the Field. One person said to use pathname and r to in_table, but that is not working unless I have it typed wrong (see below). I need to reference a shapefile to Add the field. I know I can set workspace and then basename, which would allow me to use a geodatabase with shapefile inside). I need to learn both ways!! Thanks!!

import arcpy
... import os.path
... os.path r"C:\Users\Michelle\Desktop\GIS\FA_Urbans.shp"
... arcpy.AddField_management ("FA_Urbans", "POPSQMI","TEXT", "20")