[fix] remove pyxml/python-xml Ubuntu hacks from openerp-server.py, had forgotten that

bzr revid: xmo@tinyerp.com-20100302122801-2aetv6si7nxymz7e
This commit is contained in:
Xavier Morel 2010-03-02 13:28:01 +01:00
parent 56e1e6cd2a
commit 7a29deab31
1 changed files with 0 additions and 11 deletions

View File

@ -37,17 +37,6 @@ import sys
import os
import signal
import pwd
#----------------------------------------------------------
# ubuntu 8.04 has obsoleted `pyxml` package and installs here.
# the path needs to be updated before any `import xml`
# TODO: remove PyXML dependencies, use lxml instead.
#----------------------------------------------------------
_oldxml1 = '/usr/lib/python%s/site-packages/oldxml' % sys.version[:3]
_oldxml2 = '/usr/lib/python%s/dist-packages/oldxml' % sys.version[:3]
if os.path.exists(_oldxml1):
sys.path.insert(0,_oldxml1)
elif os.path.exists(_oldxml2):
sys.path.insert(0,_oldxml2)
import release
__author__ = release.author