From ee2af8f6daba90acfadc3c3aa6a4dd81c4168835 Mon Sep 17 00:00:00 2001 From: Ivo Steinbrecher Date: Fri, 15 Nov 2024 14:54:44 +0100 Subject: [PATCH] Update mentions of python3 --- .github/workflows/build-test.yml | 2 +- README.md | 2 +- cubitpy/cubit_wrapper/cubit_wrapper_client.py | 4 ++-- tests/test_configurations.sh | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 961503f..ddc0c2b 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -32,7 +32,7 @@ jobs: . ${SPACK_ACTIVATION_SCRIPT} spack load python@3.12.1 # Create the virtual environment - python3 -m venv $PYTHON_VENV + python -m venv $PYTHON_VENV source $PYTHON_VENV/bin/activate # Update pip pip install --upgrade pip diff --git a/README.md b/README.md index 7d09ae1..89fe813 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ sudo apt-get install python3-venv python3-dev Now a virtual environment can be created (chose an appropriate directory for this, e.g., `/home/user/opt`) ```bash -python3 -m venv cubitpy-env +python -m venv cubitpy-env ``` The created virtual environment can be loaded with diff --git a/cubitpy/cubit_wrapper/cubit_wrapper_client.py b/cubitpy/cubit_wrapper/cubit_wrapper_client.py index a1b2dbf..30b6545 100644 --- a/cubitpy/cubit_wrapper/cubit_wrapper_client.py +++ b/cubitpy/cubit_wrapper/cubit_wrapper_client.py @@ -122,7 +122,7 @@ def is_cubit_type(obj): # Now start an endless loop (until None is sent) and perform the cubit functions while 1: - # Get input from python3. + # Get input from the python host. receive = channel.receive() # If None is sent, break the connection and exit @@ -250,7 +250,7 @@ def deserialize_item(item): "The id {} is not in the cubit_objects dictionary".format(cubit_id) ) - # Return to python3 + # Return to python host channel.send(None) else: diff --git a/tests/test_configurations.sh b/tests/test_configurations.sh index 5758598..9ba0ffa 100755 --- a/tests/test_configurations.sh +++ b/tests/test_configurations.sh @@ -2,10 +2,10 @@ # Test the deletion of objects. # Save stderr in variable. -python3 test_delete.py +python test_delete.py # Exit status to fail gitlab pipeline. -ERRORSTRING=$(python3 test_delete.py 2>&1) +ERRORSTRING=$(python test_delete.py 2>&1) if [[ -z "$ERRORSTRING" ]]; then # if std error was empy, test was ok echo "Deletion test OK!"