Run-time paths of script tools

716
1
08-22-2013 08:51 AM
CharlesTilly
New Contributor III
I've written a custom tool executable and I've added it to ArcGIS as a script tool using the method discussed here:
http://resources.arcgis.com/en/help/...000003t6000000

The tool reads from a config file located in the same directory as the executable. When ran manually from the command line this application works fine. However, once I run it as a script tool it fails because it can't find the config file, which it thinks is located in the same directory as ArcGIS in c:\Program Files.

What do I need to do to make it so that it reads the config file relative to where the executable resides and not relative to the host environment of the application housing the script process?

Many Thanks.

Chuck
0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor
Your link appears to be broken, can you correct it so we can understand what you are referring to?
0 Kudos