[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:
parent
56e1e6cd2a
commit
7a29deab31
|
@ -37,17 +37,6 @@ import sys
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
import pwd
|
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
|
import release
|
||||||
__author__ = release.author
|
__author__ = release.author
|
||||||
|
|
Loading…
Reference in New Issue