← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 507973] Re: [trunk] [rev 1975] startup option --addons-path can't handle more than one addons path

 

Hello,

Hum It's seems that it doesn't work anymore in the last trunk version

You make a test on the addons_path you raised an error if the path
doesn't exist.

it's good but this test occurs before the split with the comma, so an
error is always raised because (/home/vincent/addons,/home/vincent
/extra-addons doesn't exist).

Hope this help,

Vincent

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/507973

Title:
  [trunk] [rev 1975] startup option --addons-path can't handle more than
  one addons path

Status in OpenERP Server:
  Fix Released
Status in OpenERP Server trunk series:
  Fix Released

Bug description:
  Startup option --addons-path can be useful when launching server to add modules on the fly.
  It seems to be able to handle multiple addons-path comma separated (server/bin/addons/__init__.py line 48 : ad_paths= map(lambda m: os.path.abspath(m.strip()),tools.config['addons_path'].split(',')) )  but _check_addons_path method from config.py raise incorrect error cause it doesn't split the args...

  patch attached