blob: a64755cbb2d18492c2155e9a8e9614596d44c6e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- bin/package-ooo
+++ bin/package-ooo
@@ -57,6 +57,7 @@
#!/bin/sh
export OOO_EXTRA_ARG='$2'
+unset PYTHONPATH
$OOINSTBASE/program/ooqstart $3 "\$@"
EOT
chmod 755 $1
}
--- bin/ooo-wrapper.in
+++ bin/ooo-wrapper.in
@@ -92,6 +89,9 @@
print STDERR "\n\n --- Warning - OO.o will not work without a mounted /proc filesystem --- \n\n\n";
}
+# Clear PYTHONPATH, otherwise Python scripting does not work
+delete $ENV{'PYTHONPATH'};
+
# And here we go.
exec "$SystemInstallDir/program/$Binary", @ooo_argv
|