ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Editing script tool code

First, set your editor (such as PythonWin or Wing) in Geoprocessing > Geoprocessing Options. Next, in the Catalog window, right-click your tool and click Edit.

Geoprocessing doesn't read your script code until you click OK on the script tool dialog box or press ENTER while in the Python window.

A common workflow when working with Python script tools is as follows:

  • Edit your script (using PythonWin or IDLE, for example) and save your changes, but don't exit the editing application.
  • Run the script tool.
  • If need be, make more code changes, saving your edits but not exiting the editing application.
  • Run the script tool again.
  • When you're satisfied that your script is working correctly, exit the editing application.

Related Topics

  • Embedding scripts and password protecting tools
  • Debugging script tools
  • What is a script tool?
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal