I am running set of processes each with different outputs in a python script. Is there a way to set a variable as global so that just the output of that single step can be accessed from other scripts?
Script tools, like other geoprocessing tools, are meant to be able to be chained together in ModelBuilder, the Python window or other scripts/script tools. You can set up output parameters that you can access as output nodes in ModelBuilder, or as result values within the
Output parameters can be set directly as part of the user-exposed parameters, derived from an input parameter, or derived within the script. If it is derived within the script, you can use
If you have a homogenous set of data elements (tables, feature classes, etc.) being output by your script, you could use a multi-value output parameter and set it by joining the items with semicolons, e.g.
You could then split those semicolon-delimited values into a list and iterate over it in a subsequent script tool using, e.g.
Hope that gives you some idea of the possibilities!
This very much depends on your python programming skills. Pyton has sophisticated ways of handling variables between functions.
The simplest way of handling variables could be to write the variable to a file. The variable is then picked up by the other script.
Since you probably are using arcpy with shapefiles, why not use arcpy to either manipulate the contents of your shapefile dbf, or just a plain dbf-file?