AnsweredAssumed Answered

How to import a Python script into ArcGIS

Question asked by bgale88 on Jun 20, 2013
Latest reply on Jun 21, 2013 by bgale88

I created a python script tool that is going to be distributed online, and I want it to be able to be called from the ArcMap/Catalog python window (without having to include the function). If I drag the tool into the python window, "arcpy.ClipTIF(" appears, but when I try to execute the line of code with all of the appropriate attributes, I get this error:

Runtime error <type 'exceptions.AttributeError'>: 'module' object has no attribute 'ClipTIF'

FYI - "ClipTIF" is the name of my script tool and "clipTIF" is the name of my script's function. Neither work in the aforementioned line of code.

Question: How do I call the function from my python script tool in the ArcGIS python window?

Thank you in advance!