]> git.saurik.com Git - wxWidgets.git/blobdiff - debian/libwxgtk-python.prerm
compilation fix for cygwin/old mingw32 (patch 446700)
[wxWidgets.git] / debian / libwxgtk-python.prerm
index 8417f23f426cc27f3c6ff0ed03fe3a0833878095..03d602c2d38b4e8bb870c2809ad3674c27b3b1ec 100644 (file)
@@ -2,8 +2,12 @@
 
 set -e
 
-WXPYTHONDIR="/usr/lib/python1.5/site-packages/wxPython"
-find ${WXPYTHONDIR} -name "*.py?" -exec rm -f {} \;
+PACKAGE="libwxgtk=V-python"
+
+dpkg --listfiles $PACKAGE |
+       awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
+       xargs rm -f >&2
+
 
 #DEBHELPER#