westchamp24

Computing Relative Paths From The ToolValidator class

Discussion created by westchamp24 on Apr 21, 2011
Latest reply on Sep 28, 2011 by lpugh01
Hello,

Does anyone know if it is possible to get the path of toolbox (or the tool itself) from a script tool's ToolValidator class?

I am trying to compute some relative paths from inside the ToolValidator class.  This is not possible using conventional means
(os.path.dirname(__file__))
 

Any suggestions as to how to determine relative paths inside the ToolValidator would be greatly appreciated.

Outcomes