diff --git a/docs/source/user_guide/create_sites_for_python_operators.ps1 b/docs/source/user_guide/create_sites_for_python_operators.ps1 index a0198fb2ab3..86ada6f0439 100644 --- a/docs/source/user_guide/create_sites_for_python_operators.ps1 +++ b/docs/source/user_guide/create_sites_for_python_operators.ps1 @@ -6,7 +6,7 @@ Write-Host "-pythonexe" $pythonexe Write-Host "-tempfolder" $tempfolder # Expand shortcut in path -$tempfolder = Resolve-Path -Path $tempfolder +$tempfolder = Resolve-Path -Path $tempfolder -Relative Write-Host "make venv" Start-Process $pythonexe -ArgumentList ("-m venv "+ $tempfolder+"\venv") -NoNewWindow -Wait diff --git a/examples/08-python-operators/02-python_operators_with_dependencies.py b/examples/08-python-operators/02-python_operators_with_dependencies.py index f1a22ac62e9..720de18daf9 100644 --- a/examples/08-python-operators/02-python_operators_with_dependencies.py +++ b/examples/08-python-operators/02-python_operators_with_dependencies.py @@ -149,7 +149,7 @@ import subprocess process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - if process.returncode != 0 and process.stderr: + if process.stderr: raise RuntimeError( "Installing pygltf in a virtual environment failed with error:\n" + f"return code = {process.returncode}\n"