File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/ansys/tools/installer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -742,24 +742,26 @@ def _run_install_python(self, filename):
742742def __restore_windows_dll_load ():
743743 """PyInstaller on Windows may break DLL loading. This function restores it."""
744744 import sys
745+
745746 LOG .debug (f"sys.platform: { sys .platform } " )
746747 if sys .platform == "win32" :
747748 LOG .debug ("Restoring DLL loading on Windows..." )
748749 import ctypes
750+
749751 ctypes .windll .kernel32 .SetDllDirectoryA (None )
750752
751753
752754def open_gui ():
753755 """Start the installer as a QT Application."""
754756 import argparse
755757 import ctypes
756-
758+
757759 # Enable logging early
758760 enable_logging ()
759761
760762 if os .name == "nt" :
761763 import msvcrt
762-
764+
763765 # Restore DLL loading on Windows...
764766 __restore_windows_dll_load ()
765767
You can’t perform that action at this time.
0 commit comments