diff --git a/scripts/xtchain.ps1 b/scripts/xtchain.ps1 index 25c2c8d..35bdb98 100644 --- a/scripts/xtchain.ps1 +++ b/scripts/xtchain.ps1 @@ -5,7 +5,7 @@ # DEVELOPERS: Aiken Harris # Get the absolute path to the XTchain -$XTCDIR = (Get-Item -Path ".\").FullName +$XTCDIR = Split-Path -Parent $MyInvocation.MyCommand.Definition # Read the XTchain version $env:XTCVER = Get-Content "${XTCDIR}\Version"