JAL-3830 minor fix in powershell wrapper
[jalview.git] / utils / getdown / jalviewc.ps1
index d3bde6a..e8c33b6 100755 (executable)
@@ -28,7 +28,7 @@ if ( -not ( Test-Path -Path "${JAVA}" ) ) {
   $JAVA = $JAVAEXE
 }
 
-$CLASSPATH = ( Select-String -Path "${GETDOWNTXT}" -AllMatches -Pattern "code\s*=\s*(.*)$" | foreach { Join-Path -Path $DIR -ChildPath $($_.Matches.Groups[1].Value ) } ) -join ( $IsWindows ? ";" : ":" )
+$CLASSPATH = ( Select-String -Path "${GETDOWNTXT}" -AllMatches -Pattern "code\s*=\s*(.*)$" | foreach { Join-Path -Path $APPDIR -ChildPath $($_.Matches.Groups[1].Value ) } ) -join ( $IsWindows ? ";" : ":" )
 
 Invoke-Expression -Command "${JAVA} -cp '${CLASSPATH}' jalview.bin.Launcher $ARGS"