codejail icon indicating copy to clipboard operation
codejail copied to clipboard

Can we prevent Python from importing sitecustomize.py?

Open nedbat opened this issue 11 years ago • 0 comments

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.

nedbat avatar May 30 '13 14:05 nedbat