AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.116.85.111


Current Path : /snap/core20/current/usr/share/python3/runtime.d/
Upload File :
Current File : //snap/core20/current/usr/share/python3/runtime.d/public_modules.rtremove

#! /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