From 0b2deecb9ed10037843d5442837afd35bd40c78a Mon Sep 17 00:00:00 2001 From: Nuno Brum Date: Sun, 15 Sep 2024 01:03:15 +0200 Subject: [PATCH] Minor fix --- spicelib/simulators/ngspice_simulator.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spicelib/simulators/ngspice_simulator.py b/spicelib/simulators/ngspice_simulator.py index 0123a47..1dbca58 100644 --- a/spicelib/simulators/ngspice_simulator.py +++ b/spicelib/simulators/ngspice_simulator.py @@ -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 = []