I am trying to get a list of database connections stored in the folder, the script runs successfully but it gives wrong results!
For example, "inFolder=r'C:\1\test'" has only one database connection which is u'C:\\1\\test\\Urbab.sde', but when I run the script it displays it 9 times every time! I tried to run the script from the python window in the ArcMap and I also used PyScripter and both of them gives the same result.
import arcpy, sys, os
print "Connecting to geodatabase"
for DBConn in inFolder:
What might be the issue here?