summaryrefslogtreecommitdiff
path: root/pyuno/demo
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2011-01-13 17:00:01 +0100
committerNiklas Nebel <nn@openoffice.org>2011-01-13 17:00:01 +0100
commit6103f40bc8c7e24efeb79e3a78587ac9cd78ba1e (patch)
tree68fff5088fa98a573558b2a4e1e29e71b10cbb2d /pyuno/demo
parentdd87ee3c72b050ed6fda95788bcb59a55f31889c (diff)
calc65: fix pyuno environment script
Diffstat (limited to 'pyuno/demo')
-rw-r--r--pyuno/demo/pyunoenv.tcsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyuno/demo/pyunoenv.tcsh b/pyuno/demo/pyunoenv.tcsh
index 1a831996325f..038cf2ddb45b 100644
--- a/pyuno/demo/pyunoenv.tcsh
+++ b/pyuno/demo/pyunoenv.tcsh
@@ -17,7 +17,12 @@ if( ! $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH
endif
-setenv PYTHONPATH .:$OOOHOME/program:$OOOHOME/program/pydemo:$OOOHOME/program/python/lib:$PYTHONPATH
+if( "$PYTHONPATH" != "" ) then
+ setenv PYTHONPATH $OOOHOME/program:$OOOHOME/program/pydemo:$OOOHOME/program/python/lib:$PYTHONPATH
+else
+ setenv PYTHONPATH $OOOHOME/program:$OOOHOME/program/pydemo:$OOOHOME/program/python/lib
+endif
+
setenv LD_LIBRARY_PATH $OOOHOME/program:$LD_LIBRARY_PATH
if( $?PYTHONHOME ) then