jdadams

Syntax Error When Attempting to Add Custom Toolbox to Python Script

Discussion created by jdadams on May 14, 2012
Latest reply on May 14, 2012 by jdadams
I am trying to add a custom toolbox to a python script. Seems like a pretty simple coding exercise, but I am getting an incorrect syntax error.

The code I am using is as follows:

#Import modules
import sys, os, arcpy, string

arcpy.ImportToolbox("C:/Data/Custom Tools.tbx", "custom")

Any thoughts? I am running ArcGIS Desktop 10 (service pack 4) with licensing for ArcMap and Spatial Analyst. Do you need full ArcGIS
licensing to add a a toolbox to a python script? Thanks...

Jeff

Outcomes