c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16077
[Bug 716710] Re: [TRUNK 3353] dont more support multiple addons path
**my patch have a problem when only one patch in config, sorry about
that
self.options['addons_path']= ','.join([
os.path.abspath(os.path.expanduser(os.path.expandvars(x))) for x in
self.options['addons_path'].split(',')])
i think that solve the problem.
--
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/716710
Title:
[TRUNK 3353] dont more support multiple addons path
Status in OpenERP Server:
Fix Released
Bug description:
config.py
if not self.options['addons_path'] or self.options['addons_path']=='None':
self.options['addons_path'] = os.path.join(self.options['root_path'], 'addons')
else:
self.options['addons_path'] = os.path.abspath(os.path.expanduser(os.path.expandvars(self.options['addons_path'])))
The Else dont support multipath (supporting before, and still support
after my correction)
Correction
if not self.options['addons_path'] or self.options['addons_path']=='None':
self.options['addons_path'] = os.path.join(self.options['root_path'], 'addons')
else:
o = self.options['addons_path']
self.options['addons_path'] = ''
for x in o.split(','):
self.options['addons_path'] = ','.join([self.options['addons_path'], os.path.abspath(os.path.expanduser(os.path.expandvars(x)))])
So is not the better way, but atm i dont care i need that work.
ps : i know this is a trunk, but before commit branch on trunk no test
done to ensure all functionality follow ?
References