From e8205c91c2b63309c5c26e20e79edd90264ce837 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 17 Dec 2001 19:24:05 +0000 Subject: [PATCH] support wgl in ppython --- direct/src/showbase/ppython | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ppython b/direct/src/showbase/ppython index 7a78cefa44..f377adf3e0 100755 --- a/direct/src/showbase/ppython +++ b/direct/src/showbase/ppython @@ -47,6 +47,13 @@ fi HOME=`cygpath -w $HOME` export HOME +# -w will run with WireGL. +wgl= +if [ x"$1" = x"-w" ]; then + shift 1 + wgl=wgl +fi + if [ x"$1" = x"-msdev" ]; then # used for local machine debugging of vc dlls called by python shift 1 @@ -62,8 +69,8 @@ elif [ x"$1" = x"-d" ]; then # parameter -d to indicate we should run python_d. shift 1 - exec python_d ${1+"$@"} + exec $wgl python_d ${1+"$@"} else - exec python ${1+"$@"} + exec $wgl python ${1+"$@"} fi