if [ArcGIS 10]: Do this else [ArcGIS 9.3]: Do this
Solved! Go to Solution.
try:    installInfoDict = arcpy.GetInstallInfo("DESKTOP") except:    installInfoDict = gp.getinstallinfo("DESKTOP")  if installInfoDict['Version'] == '10.0':    do this elif if installInfoDict['Version'] == '9.3':    do that else:    do someting completely differenttry: import arcpy as gp gp_version = 10.0 except: import arcgisscripting as gp gp_version = 9.3
if gp_version == 10.0: #do the arcpy stuff else: #do the arcgiscripting stuff
try:    installInfoDict = arcpy.GetInstallInfo("DESKTOP") except:    installInfoDict = gp.getinstallinfo("DESKTOP")  if installInfoDict['Version'] == '10.0':    do this elif if installInfoDict['Version'] == '9.3':    do that else:    do someting completely different