my indented code without the try/except is below. Python reports no errors but after the script completes running, DefineProjection_management() doesn't show the correct location/points in a map.
My folder structure and code are below. Can somebody suggest a fix please?
import arcpy
from arcpy import env
import os
# set path where the shapefiles are located
arcpy.env.workspace = "Z:/temp1"
inWorkspace = arcpy.env.workspace
workspaces = arcpy.ListWorkspaces("*", "ALL")
for item in workspaces:
print item
env.workspace = item
fcs = arcpy.ListFeatureClasses()
for file in fcs:
print '\t', file
# set local variables
for file in fcs:
inData = file
coordinateSystem = arcpy.SpatialReference(4283)
arcpy.DefineProjection_management(inData, coordinateSystem)


print arcpy.env.workspace, fileoutput anything? – Midavalo Aug 17 '16 at 01:36forblock. Make sure the 3 lines under the block are aligned and indented. – GISGe Aug 17 '16 at 05:53name 'inData' is not definedis only part of the error message. – PolyGeo Aug 17 '16 at 23:26