It's a system variable in Windows. I believe you can substitute "AGSDESKTOPJAVA" for "ARCGISHOME" since AGSDESKTOPJAVA is installed with ArcGIS 10. I just changed the variable and it worked.
Old line:
tbx_home = os.environ['ARCGISHOME'].replace("\\","/") + \
"ArcToolbox/Toolboxes/"
New line:
tbx_home = os.environ['AGSDESKTOPJAVA'].replace("\\","/") + \
"ArcToolbox/Toolboxes/"
Dan Patterson, you got a new version anywhere?
Here's my version. Just ensure the Windows "AGSDESKTOPJAVA" environmental
variable is present and it points to the correct ArcGIS desktop folder.
Here's a screen shot:
Tony Meyers Jr.
Systems Development Manager
Planning and Urban Design Agency
City of St. Louis
314-657-3852
meyerstjr@stlouis-mo.gov
Ian ... posted this as a test on what I think/thought is the beta site... let me know if it is OK... should be June 2015
Looks good. I'm not sure if the "AGSDESKTOPJAVA" variable is natively
installed with ArcGIS 10.X or is from another ESRI application. It's
present on my machine.
Tony Meyers Jr.
Systems Development Manager
Planning and Urban Design Agency
City of St. Louis
314-657-3852
meyerstjr@stlouis-mo.gov
I got rid of the whole toolbox checking thing since you really don't need it for either Python or ArcMap if you let ArcGIS install install itself and Python since it creates its own python installation path etcetera so both can find one another and hence the toolboxes. It just makes things cleaner. Once downside is that you have to save your toolboxes in older versions if you want them to be backwards compatable.
Thanks for posting, saw you were the original author and figured you had a newer one. I didn't need a copy, but I figured this thread should link to a new version if it was available. I'll probably go ahead an bookmark, never know when I might need it.