Locate path to FGDB when script tool is imbedded in the FGDB?

Discussion created by csny490 on Oct 17, 2012
Latest reply on Oct 17, 2012 by csny490
I have a script tool that is imbedded within a FGDB toolbox. When a tool is run from this FGDB-based toolbox, I want to be able to have a hook to the path to the FGDB where the tool resides (so for example, write a FC to the FGDB where the tool resides).

Anyone know of a way to do this via arcpy/Python?