From f497f1c5dc2c4dc678fdf26b42620f4714a3f8ee Mon Sep 17 00:00:00 2001 From: jeffser Date: Mon, 7 Oct 2024 10:10:20 -0600 Subject: [PATCH] Styling --- src/dialogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 3c3a8a5..1347df5 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -428,11 +428,12 @@ def run_script_response(self, dialog, task, script, language_name): with open(os.path.join(data_dir, 'pyenv', 'main.py'), 'w') as f: f.write(script) script = [ + 'echo "🐍 {}\n"'.format(_('Setting up Python environment...')), 'python3 -m venv "{}"'.format(os.path.join(data_dir, 'pyenv')), '{} {}'.format(os.path.join(data_dir, 'pyenv', 'bin', 'python3').replace(' ', '\\ '), os.path.join(data_dir, 'pyenv', 'main.py').replace(' ', '\\ ')) ] if os.path.isfile(os.path.join(data_dir, 'pyenv', 'requirements.txt')): - script.insert(1, '{} install -r {}'.format(os.path.join(data_dir, 'pyenv', 'bin', 'pip3'), os.path.join(data_dir, 'pyenv', 'requirements.txt'))) + script.insert(1, '{} install -r {} | grep -v "already satisfied"; clear'.format(os.path.join(data_dir, 'pyenv', 'bin', 'pip3'), os.path.join(data_dir, 'pyenv', 'requirements.txt'))) else: with open(os.path.join(data_dir, 'pyenv', 'requirements.txt'), 'w') as f: f.write('')