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 / python3 / runtime.d / | server ip : 172.67.156.115 your ip : 172.71.254.163 H O M E |
Filename | /usr/share/python3/runtime.d/public_modules.rtremove |
Size | 651 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 23-Mar-2014 16:17 |
Last accessed | 23-Mar-2014 16:17 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#! /bin/sh
set -e
VERSION=${2#python}
if which py3clean >/dev/null 2>&1; then
if [ "$VERSION" = 3.1 ]; then
find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete
find /usr/lib/python3/dist-packages -name '*.py[co]' -delete
else
py3clean -V $VERSION /usr/lib/python3/dist-packages
fi
else
if [ "$VERSION" = 3.1 ]; then
find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete
else
TAG=`python$VERSION -c "import imp; print(imp.magic_tags[imp.get_magic()])"` \
find /usr/lib/python3/dist-packages -name "*.$TAG.py[co]" -delete
find /usr/lib/python3/dist-packages -depth -empty -name '__pycache__' -delete
fi
fi
set -e
VERSION=${2#python}
if which py3clean >/dev/null 2>&1; then
if [ "$VERSION" = 3.1 ]; then
find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete
find /usr/lib/python3/dist-packages -name '*.py[co]' -delete
else
py3clean -V $VERSION /usr/lib/python3/dist-packages
fi
else
if [ "$VERSION" = 3.1 ]; then
find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete
else
TAG=`python$VERSION -c "import imp; print(imp.magic_tags[imp.get_magic()])"` \
find /usr/lib/python3/dist-packages -name "*.$TAG.py[co]" -delete
find /usr/lib/python3/dist-packages -depth -empty -name '__pycache__' -delete
fi
fi