VoyagerXHF's picture
Upload folder using huggingface_hub (part 107)
598838a verified
Raw History Blame Contribute Delete
700 Bytes
<#
launch.ps1 - Starts the Automatic Thresholding GUI application.
Outputs ONLY the numeric process id (PID) as the first line of stdout so
the test harness can capture and manage the process. Works standalone
(does not require build.ps1 to have been run in the same session), as long
as the executable exists at the path below.
#>
$ErrorActionPreference = 'Stop'
$exePath = (Join-Path (Split-Path $PSScriptRoot -Parent) 'install\AutomaticThresholding.exe')
# Run from the install directory so any relative paths resolve predictably.
$workDir = Split-Path -Parent $exePath
$proc = Start-Process -FilePath $exePath -WorkingDirectory $workDir -PassThru
Write-Output $proc.Id