Resolve XTchain directory based on script path

This commit is contained in:
2025-09-28 22:57:35 +02:00
committed by CodingWorkshop Signing Team
parent 297937aeb3
commit 3fff3b487b

View File

@@ -5,7 +5,7 @@
# DEVELOPERS: Aiken Harris <harraiken91@gmail.com> # DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
# Get the absolute path to the XTchain # Get the absolute path to the XTchain
$XTCDIR = (Get-Item -Path ".\").FullName $XTCDIR = Split-Path -Parent $MyInvocation.MyCommand.Definition
# Read the XTchain version # Read the XTchain version
$env:XTCVER = Get-Content "${XTCDIR}\Version" $env:XTCVER = Get-Content "${XTCDIR}\Version"