Ubuntu 18.04 does come with a sitecustomize.py file.

I think this is not a good solution.

I would really like to be able to execute some python code during
interpreter start.

AFAIK sitecustomize.py is the way to got. But if ubuntu provides one,
then this does not work.

Related question: https://stackoverflow.com/questions/52449602/how-to-
set-environment-variables-in-virtualenv-started-via-python


root@1b3dffd4d058:/# python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
>>> import sitecustomize
>>> sitecustomize.__file__
'/usr/lib/python2.7/sitecustomize.pyc'

root@1b3dffd4d058:/# cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/197219

Title:
  /usr/local/lib/python/sitecustomize.py broken due to overriding
  sitecustomize in /etc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/diveintopython/+bug/197219/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to