Fixing ImportError: cannot import name xpath on ubuntu 8.04

bzr revid: fla@tinyerp.com-ddc0383fb90cba8b23d66f15678ca6e79244c7ef
This commit is contained in:
Frederic Lambotte 2008-05-15 05:23:30 +00:00
parent 2204ef6f4a
commit 7ee6ea5d76
1 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,14 @@ __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`
#----------------------------------------------------------
_oldxml = '/usr/lib/python%s/site-packages/oldxml' % sys.version[:3]
if os.path.exists(_oldxml):
sys.path.append(_oldxml)
#----------------------------------------------------------
# get logger
#----------------------------------------------------------