codejail
codejail copied to clipboard
Can we prevent Python from importing sitecustomize.py?
On Ubuntu, sitecustomize.py is linked to /etc/python2.7/sitecustomize.py, which tries to import apport_python_hook. This fails due to the AppArmor profile, but I would rather not import it at all.
I tried writing an empty sitecustomize.py into the sandbox directory, but it didn't get imported, not sure why.