Skip to content

Commit

Permalink
Converter: comment xdpyinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Oct 15, 2024
1 parent b3daecc commit e0d9a5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
tags:
- 'v*'
branches:
- 'main'
# branches:
# - 'main'

jobs:
build:
Expand Down
38 changes: 19 additions & 19 deletions Cassiopee/Converter/Converter/kpython
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,25 @@ shift $((OPTIND-1))
SCRIPT=$*

# Machine avec remote GL (utilisant virtual GL)
if command -v xdpyinfo &> /dev/null
then
xdpyinfo &> /dev/null
if [ $? == 0 ]; then
xdpyinfo | grep VNC &> /dev/null
if [ $? -eq 0 ]; then
cat $SCRIPT | grep "offscreen=1" > /dev/null
if [ $? -ne 0 ]; then
cat $SCRIPT | grep "offscreen=7" > /dev/null
if [ $? -ne 0 ]; then
cat $SCRIPT | grep "offscreen=5" > /dev/null
if [ $? -ne 0 ]; then
PYTHONEXE='vglrun '$PYTHONEXE
fi
fi
fi
fi
fi
fi
#if command -v xdpyinfo &> /dev/null
#then
# xdpyinfo &> /dev/null
# if [ $? == 0 ]; then
# xdpyinfo | grep VNC &> /dev/null
# if [ $? -eq 0 ]; then
# cat $SCRIPT | grep "offscreen=1" > /dev/null
# if [ $? -ne 0 ]; then
# cat $SCRIPT | grep "offscreen=7" > /dev/null
# if [ $? -ne 0 ]; then
# cat $SCRIPT | grep "offscreen=5" > /dev/null
# if [ $? -ne 0 ]; then
# PYTHONEXE='vglrun '$PYTHONEXE
# fi
# fi
# fi
# fi
# fi
#fi

if [ "$NTHREADS" = "0" ]
then
Expand Down

0 comments on commit e0d9a5b

Please sign in to comment.