octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61208] [MXE Octave] Start scripts should set


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61208] [MXE Octave] Start scripts should set OPENBLAS_NUM_THREADS
Date: Mon, 4 Oct 2021 03:24:33 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 Edg/94.0.992.38

Follow-up Comment #5, bug #61208 (project octave):

You are probably referring to this hunk of the patch:

diff -r 18ed05625431 -r ff1b3f3aaf6e installer-files/octave-firsttime.vbs
--- a/installer-files/octave-firsttime.vbs      Sun Sep 19 18:29:32 2021 +0200
+++ b/installer-files/octave-firsttime.vbs      Thu Sep 23 14:20:41 2021 +0200
@@ -2,11 +2,23 @@
 
 Set wshShell = CreateObject( "WScript.Shell" )
 
+' If running with wscript.exe, "Exec" will flash a window for a split
second.
+' Relaunch with cscript.exe which doesn't show that window.
+If InStr(1, WScript.FullName, "wscript.exe", vbTextCompare) > 0 Then
+  AllArgs = ""
+  Set wshArgs = WScript.Arguments
+  For I = 0 to wshArgs.Count - 1
+    AllArgs = AllArgs & " " & chr(34) & wshArgs(I) & chr(34)
+  Next
+  WScript.Quit wshShell.Run("cscript.exe """ & WScript.ScriptFullName & """ "
& AllArgs, 0, True)
+End If
+
+
 ' get the directory that script resides in
 Set fso = CreateObject("Scripting.FileSystemObject")
 OctavePath = fso.GetParentFolderName(WScript.ScriptFullName)
 
-' ctavePath is now the root of the install folder, but for msys2,
+' OctavePath is now the root of the install folder. But for msys2,
 ' OctavePath should be OctavePath/mingw64 or OctavePath/ming32
 MSysType = "MSYS"
 MSysPath = OctavePath


I was trying to be as clear as possible with the comment: It is "Exec" that
causes the flashing window for me. We did not call "Exec" before that patch.
So no flashing windows before that patch for me.
This patch adds a command that calls "wmic" using "Exec". That would cause the
flashing window (for me) unless the hunk above is also added.

Do who have suggestions how to make that comment more easily understandable?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61208>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]