Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

.lyr find data source lost

$
0
0
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?

Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images