Comment 10 for bug 507973

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote : Re: [Bug 507973] Re: [trunk] [rev 1975] startup option --addons-path can't handle more than one addons path

On 18 Jan 2010, at 15:05 , P. Christeas wrote:
>
> On Monday 18 January 2010, you wrote:
>>>
>>> pathsep has to do with directories notation, doesn't it?
>>
>> That's what one would think yeah, but it's not the case. The directory
>> separator is os.path.sep, os.path.pathsep is the $PATH separator, and is
>> defined in the various platform-specific *path.py files:
>>
> Now that I think of it, it would be a genuinely bad idea to have a system-
> specific delimiter, instead of a global (for all installations of OpenERP).
> If we just admit that we wouldn't install OpenERP in a strange path
> (containing spaces, commas or else), we can reserve those characters for our
> addons list delimiter.

Why? File (and directory) paths are already system-specific, and those are OS-wide conventions and there is no reason to break them. Using nonstandard path separators means having to document them and having to deal with sysadmins who want to setup openerp servers and have to break their own OS's conventions (which should be pretty much embedded in their bones).