~camptocamp/openobject-server/7.0-c2c-official

« back to all changes in this revision

Viewing changes to openerp/tools/misc.py

  • Committer: Yannick Vaucher
  • Date: 2013-03-11 12:03:36 UTC
  • mfrom: (4773.1.116 openobject-server)
  • Revision ID: yannick.vaucher@camptocamp.com-20130311120336-hgyv89pww0kiwff2
[MRG] from official

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        # Is it below 'addons_path' or 'root_path'?
140
140
        name = os.path.normcase(os.path.normpath(name))
141
141
        for root in adps + [rtp]:
 
142
            root = os.path.normcase(os.path.normpath(root)) + os.sep
142
143
            if name.startswith(root):
143
144
                base = root.rstrip(os.sep)
144
145
                name = name[len(base) + 1:]