BlocklyAutomation icon indicating copy to clipboard operation
BlocklyAutomation copied to clipboard

mac problem

Open ignatandrei opened this issue 1 year ago • 0 comments

        // 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"
            }
        };

ignatandrei avatar Jan 24 '23 20:01 ignatandrei