Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nunobrum committed Sep 14, 2024
1 parent a7b0b26 commit 0b2deec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spicelib/simulators/ngspice_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ class NGspiceSimulator(Simulator):
break
else:
# check if file in path
full_exe = shutil.which(exe)
if full_exe:
if shutil.which(exe):
spice_exe = [exe]
break

# The following variables are not needed anymore. This also makes sphinx not mention them in the documentation.
del exe
del full_exe


# fall through
if len(spice_exe) == 0:
spice_exe = []
Expand Down

0 comments on commit 0b2deec

Please sign in to comment.