Fixed `xpath` problem on ubuntu 8.04 (caused by deprecated pyxml package)
bzr revid: ame@tinyerp.com-ff4c4498c7bc62cfd4734b1c310de0c0a181b138
This commit is contained in:
parent
69f8025562
commit
3f155bda30
|
@ -53,6 +53,13 @@ __builtin__.__dict__['tinyerp_version_string'] = "Tiny ERP Server " + __version_
|
|||
#----------------------------------------------------------
|
||||
import sys,os,signal
|
||||
|
||||
# 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.
|
||||
_oldxml = '/usr/lib/python%s/site-packages/oldxml' % sys.version[:3]
|
||||
if os.path.exists(_oldxml):
|
||||
sys.path.append(_oldxml)
|
||||
|
||||
#----------------------------------------------------------
|
||||
# ubuntu 8.04 has obsoleted `pyxml` package and installs here.
|
||||
# the path needs to be updated before any `import xml`
|
||||
|
|
Loading…
Reference in New Issue