Hello,
I have a folder with lyr.
I want to know the lyr. With lost data sources. Like this script:
import arcpy
path = r "C: \ Project"
for fileName in os.listdir (path):
fullPath = os.path.join (path, fileName)
if os.path.isfile (fullPath):
basename, extension = os.path.splitext (fullPath)
if extension == "mxd."
mxd = arcpy.mapping.MapDocument (fullPath)
print "MXD:" + fileName
brknList arcpy.mapping.ListBrokenDataSources = (mxd)
for brknItem in brknList:
print "\ t" + brknItem.name
del mxd
Anyone know how to adapt?
I have a folder with lyr.
I want to know the lyr. With lost data sources. Like this script:
import arcpy
path = r "C: \ Project"
for fileName in os.listdir (path):
fullPath = os.path.join (path, fileName)
if os.path.isfile (fullPath):
basename, extension = os.path.splitext (fullPath)
if extension == "mxd."
mxd = arcpy.mapping.MapDocument (fullPath)
print "MXD:" + fileName
brknList arcpy.mapping.ListBrokenDataSources = (mxd)
for brknItem in brknList:
print "\ t" + brknItem.name
del mxd
Anyone know how to adapt?




