>>import arcpy >>arcpy.env.workspace = u'C:\\Users\\hp\\Documents\\ArcGIS\\Default.gdb' >>arcpy.ListFeatureClasses() >>[]
>>> import arcpy >>> arcpy.env.workspace = "c:/users/kimo/documents/arcgis/default.gdb" >>> arcpy.ListFeatureClasses() [] >>> arcpy.env.workspace = r"C:\Documents and Settings\kimo\My Documents\ArcGIS\Default.gdb" >>> arcpy.ListFeatureClasses() [u'sea1_Buffer', u'amenity2_EliminatePolygonPar'] >>> ws = r"C:\Documents and Settings\kimo\My Documents\ArcGIS\Default.gdb" >>> if arcpy.Exists(ws): ... arcpy.ListFeatureClasses() ... else: ... print "Workspace not found" ... [u'sea1_Buffer', u'amenity2_EliminatePolygonPar']
r"C:\Users\kimo\My Documents\ArcGIS\Default.gdb"
trying changing it to
'C:/Users/kimo/Documents/ArcGIS/Default.gdb'