cubicweb #229663 bad sys.path adjustment [resolved]

The code written to handle the new CW_CUBES_DIR environment variable breaks sys.path adjustment:

File "/home/auc/rep/cubicweb/cubicweb/server/repository.py", line 45, in <module>
  from cubicweb.server.hookhelper import rproperty
File "/home/auc/rep/cubicweb/cubicweb/server/hookhelper.py", line 9, in <module>
  from smtplib import SMTP
File "/usr/lib/python2.5/smtplib.py", line 46, in <module>
  import email.Utils

CubicWeb tries to import the email cube instead of the standard email package.

priorityimportant
typebug
done in3.1.2
load0.100
load left0.000
closed by<not specified>