Fixing ImportError: cannot import name xpath on ubuntu 8.04
bzr revid: fla@tinyerp.com-ddc0383fb90cba8b23d66f15678ca6e79244c7ef
This commit is contained in:
parent
2204ef6f4a
commit
7ee6ea5d76
|
@ -53,6 +53,14 @@ __builtin__.__dict__['tinyerp_version_string'] = "Tiny ERP Server " + __version_
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
import sys,os,signal
|
import sys,os,signal
|
||||||
|
|
||||||
|
#----------------------------------------------------------
|
||||||
|
# ubuntu 8.04 has obsoleted `pyxml` package and installs here.
|
||||||
|
# the path needs to be updated before any `import xml`
|
||||||
|
#----------------------------------------------------------
|
||||||
|
_oldxml = '/usr/lib/python%s/site-packages/oldxml' % sys.version[:3]
|
||||||
|
if os.path.exists(_oldxml):
|
||||||
|
sys.path.append(_oldxml)
|
||||||
|
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
# get logger
|
# get logger
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue