From db1486e4ffb2025e01d611103ff22371c8cf4cb5 Mon Sep 17 00:00:00 2001 From: KaratasD Date: Wed, 27 Apr 2022 08:58:16 +0200 Subject: [PATCH] TrussGenerator bugfix --- Examples/TrussGenerator_2D/TrussGenerator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/TrussGenerator_2D/TrussGenerator.py b/Examples/TrussGenerator_2D/TrussGenerator.py index 8dad52e8..31eccd95 100644 --- a/Examples/TrussGenerator_2D/TrussGenerator.py +++ b/Examples/TrussGenerator_2D/TrussGenerator.py @@ -25,7 +25,7 @@ except: print('qdarkstyle library is not installed in your Python env.') instqdark = input('Do you want to install it (y/n)? ') - instqdark = instPyQt5.lower() + instqdark = instqdark.lower() if instqdark == 'y': import subprocess try: @@ -43,9 +43,9 @@ import numpy as np except: print('numpy library is not installed in your Python env.') - instqdark = input('Do you want to install it (y/n)? ') - instqdark = instPyQt5.lower() - if instqdark == 'y': + instnumpy = input('Do you want to install it (y/n)? ') + instnumpy = instnumpy.lower() + if instnumpy == 'y': import subprocess try: subprocess.call('python -m pip install numpy')