johsand

User script as Toolbox in ArcGIS 9.2 connects to cmd.exe instead of  Python?

Discussion created by johsand on Oct 3, 2013
Latest reply on Oct 4, 2013 by johsand
The problem is as follows:
1. I start by creating a blank new Toolbox in ArcCatalog 9.2.
2. In ArcMap 9.2 I rightclick on the toolbox and enter a very simple basic Python Script

When executing the script from the Toolbox pane, an error message comes up which
suggests that the script file (.py) has been passed to cmd.exe rather than to the Python interpreter.
I can run the script OK by clicking on "run module" in the IDLE window, but then it will not
benefit from Toolbox diaglog features or the default import inclusions.

So my question is: Why does it pass the script to cmd.exe instead of the Python 2.4 interpreter?
Is it anything to do with path or environment setting somewhere?  How can I fix this?

Outcomes