Skip to content

Commit 0fdb3b0

Browse files
committed
Making it work for Mingw for the msys2 project
1 parent b29b0da commit 0fdb3b0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

PySpice/Spice/NgSpice/Shared.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,6 @@ def setup_platform(cls):
443443

444444
cls.LIBRARY_PATH = str(path)
445445

446-
447-
448446
##############################################
449447

450448
_instances = {}
@@ -521,7 +519,6 @@ def _load_library(self, verbose):
521519
# https://sourceforge.net/p/ngspice/discussion/133842/thread/1cece652/#4e32/5ab8/9027
522520
# When environment variable SPICE_LIB_DIR is empty, ngspice looks in C:\Spice64\share\ngspice\scripts
523521
# Else it tries %SPICE_LIB_DIR%\scripts\spinit
524-
525522
if 'SPICE_LIB_DIR' not in os.environ:
526523
_ = str(Path(self.NGSPICE_PATH).joinpath('share', 'ngspice'))
527524
os.environ['SPICE_LIB_DIR'] = _
@@ -635,7 +632,7 @@ def _send_char(message_c, ngspice_id, user_data):
635632
if content.startswith('Warning:'):
636633
func = self._logger.warning
637634
elif content.startswith('Using'): # Ignore "Using ... as Direct Linear Solver" messages
638-
func = self._logger.debug
635+
func = self._logger.debug
639636
else:
640637
self._error_in_stderr = True
641638
func = self._logger.error

0 commit comments

Comments
 (0)