I'm currently working on several module functions.
Now I need to get the modules root directory. Do I need to work with `$PSScriptRoot`, `$PSCmdlet` or `$MyInvocation`? – I thought there is an automatic variable ?
Well, this would return a list of all available module paths. But I really need the current root directory of the module I'm currently in. So @daniel-krebs idea seems to be the easiest way. (At least for me ^^).
But thanks anyway!
The topic ‘How to get the modules root directory?’ is closed to new replies.