Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / debhelper / autoscripts / | server ip : 172.67.156.115 your ip : 108.162.216.142 H O M E |
Filename | /usr/share/debhelper/autoscripts/prerm-py3clean |
Size | 309 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 25-Mar-2014 00:41 |
Last accessed | 06-Jul-2025 22:33 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
if which py3clean >/dev/null 2>&1; then
py3clean -p #PACKAGE# #ARGS#
else
dpkg -L #PACKAGE# | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi
py3clean -p #PACKAGE# #ARGS#
else
dpkg -L #PACKAGE# | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi