Packaging Python script for end user to run

Creating a custom tool for use within arctoolbox. There are several sections within the help files that are useful, see A quick tour of creating custom tools as a starting point.


You could use a combination of Python's built-in raw_input function and a batch file. Both live in the same directory, the batch file calls the script (so all they have to do is 2X click on the batch file), and raw_input asks them for the needed inputs. Example Python code in untitled-2.py:

name = raw_input("Enter name:")
print "Hello", name

Contents of batch file:

python untitled-2.py
pause

I put the pause in there so we could see the output after I 2X clicked on the batch file:

enter image description here

So all your user has to do is place both the Python script and the batch file in the same location on their box, double-click on the batch file, and enter in whatever is asked of them.