BlocklyAutomation
BlocklyAutomation copied to clipboard
mac problem
// Expand the default paths for tools on different platforms.
var home = Environment.ExpandEnvironmentVariables("%HOME%");
if(System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
home = Environment.ExpandEnvironmentVariables("%USERPROFILE%");
}
var process = new Process()
{
StartInfo = new ProcessStartInfo()
{
WorkingDirectory = $"./{functionId}",
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false,
CreateNoWindow = true,
FileName=$"{home}/.dotnet/tools/hypar", // Use the full expanded path to your tool.
Arguments="init"
}
};