Public/Get-PsModuleBuilderPath.ps1

function Get-PsModuleBuilderPath
{

  <#
    .Synopsis
      Get the module path used for PSModuleBuilder
    .DESCRIPTION
      This defaults to the User's module path found in $env:PSModulePath and is typically
      $env:UserProfile/Documents/WindowsPowerShell/ but can be changed and set to a custom
      path with Set-PsModuleBuilderPath
    .EXAMPLE
      Get-PsModuleBuilderPath
  #>

  
  [CmdletBinding()]  
  param ()  
  
  BEGIN{}
  PROCESS{
    . "$PSscriptRoot\Set-PsModuleBuilderPath.ps1"
    $dataPath = "$PsScriptRoot\..\Data\psmodulebuilderpath.xml"

    if (!(Test-Path $dataPath -PathType Leaf)) {
      Set-PsModuleBuilderPath -Default
    }

    $path = Import-CliXml -Path $dataPath
    
    Write-Debug "PsModuleBuilderPath: $path"
    
    return $path
  }#process
  END{}
}