Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we prevent Python from importing sitecustomize.py? #9

Open
nedbat opened this issue May 30, 2013 · 0 comments
Open

Can we prevent Python from importing sitecustomize.py? #9

nedbat opened this issue May 30, 2013 · 0 comments

Comments

@nedbat
Copy link
Contributor

nedbat commented May 30, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant