Skip to content

Commit 6c042ac

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6feee2e commit 6c042ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ansys/tools/installer/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,24 +742,26 @@ def _run_install_python(self, filename):
742742
def __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

752754
def 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

0 commit comments

Comments
 (0)