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("\\","/") + \
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.
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.