From c5600d9a5d6713987d3863c6887114431bdecc70 Mon Sep 17 00:00:00 2001 From: feihoo87 Date: Wed, 19 Feb 2025 16:17:44 +0800 Subject: [PATCH] fix bootstrap --- qulab/executor/cli.py | 6 +++--- qulab/version.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qulab/executor/cli.py b/qulab/executor/cli.py index caea4849..39172691 100755 --- a/qulab/executor/cli.py +++ b/qulab/executor/cli.py @@ -20,11 +20,11 @@ @logger.catch(reraise=True) def boot(script_path): """Run a script in a new terminal.""" + import subprocess import sys - from qulab.utils import run_detached_with_terminal - - run_detached_with_terminal(sys.executable + ' ' + script_path) + proc = subprocess.Popen([sys.executable, script_path]) + proc.communicate() @logger.catch(reraise=True) diff --git a/qulab/version.py b/qulab/version.py index f308a49f..d5f2ffd9 100644 --- a/qulab/version.py +++ b/qulab/version.py @@ -1 +1 @@ -__version__ = "2.7.3" \ No newline at end of file +__version__ = "2.7.4" \ No newline at end of file