CheckProduct
Summary
Checks to see if the requested license is available.
Syntax
CheckProduct (check_product)
Parameter | Explanation | Data Type |
check_product |
Product code for the product being checked.
| String |
Data Type | Explanation |
String |
There are five possible return values for CheckProduct:
|
Code Sample
CheckProduct example
Check to see if an ArcInfo license is available.
import arcpy from arcpy import env import sys env.workspace = "C:/Data/World.gdb" if arcpy.CheckProduct("ArcInfo") == "Available": arcpy.PolygonToLine_management("Lakes", "LakeLines") else: print "ArcInfo license not available" sys.exit("ArcInfo license not available")
Related Topics
10/28/2011