goa/test/pytestconf.py
branchstable
changeset 2172 cf8f9180e63e
parent 1977 606923dff11b
equal deleted inserted replaced
2125:19861294506f 2172:cf8f9180e63e
     4 import sys
     4 import sys
     5 import os.path as osp
     5 import os.path as osp
     6 
     6 
     7 import cubicweb
     7 import cubicweb
     8 # remove 'mx' modules imported by cubicweb
     8 # remove 'mx' modules imported by cubicweb
     9 for modname in sys.modules.keys(): 
     9 for modname in sys.modules.keys():
    10     if modname.startswith('mx'):
    10     if modname.startswith('mx'):
    11         sys.modules.pop(modname)
    11         sys.modules.pop(modname)
    12 
    12 
    13 # this is where mx should get imported from
    13 # this is where mx should get imported from
    14 mxpath = osp.abspath(osp.join(osp.dirname(cubicweb.__file__), 'embedded'))
    14 mxpath = osp.abspath(osp.join(osp.dirname(cubicweb.__file__), 'embedded'))