import arcpy from arcpy import env env.
def execute(self, parameters, messages): """The tool logic to perform once the tool is executed.""" arcpy.env.workspace = "C:\Temp"
class Tool(object): def __init__(self): """Define the tool's attributes.""" self.label = "MyTool" self.description = "Tool1" self.canRunInBackground = False arcpy.env.scratchGDB = r"C:\Temp\MyGDB.gdb"
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.