+1 for me. it will ease all the maintenance and lot of redundnat questions related to the configuration we got often in #opensim<div><br></div><div><br><br><div class="gmail_quote">On Fri, Mar 6, 2009 at 9:57 AM, Melanie <span dir="ltr"><<a href="mailto:melanie@t-data.com">melanie@t-data.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">We did that because the hardcoded defaults won't work anymore. They<br>
are different fromt he OpenSim.ini.example values.<br>
However, my proposal provides a sane mechanism to provide external<br>
defaults, while not requiring user action at all.<br>
<font color="#888888"><br>
Melanie<br>
</font><div><div></div><div class="h5"><br>
Frisby, Adam wrote:<br>
> I did wonder why we started forcing users to have an opensim.ini. The previous 'use defaults' made more sense to me.<br>
><br>
> Adam<br>
><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:opensim-dev-bounces@lists.berlios.de">opensim-dev-bounces@lists.berlios.de</a> [mailto:<a href="mailto:opensim-dev-">opensim-dev-</a><br>
>> <a href="mailto:bounces@lists.berlios.de">bounces@lists.berlios.de</a>] On Behalf Of Jeff Ames<br>
>> Sent: Thursday, 5 March 2009 7:20 PM<br>
>> To: <a href="mailto:opensim-dev@lists.berlios.de">opensim-dev@lists.berlios.de</a><br>
>> Subject: Re: [Opensim-dev] Ini file(s) loading<br>
>><br>
>> Melanie wrote:<br>
>> > read [the config directory] first<br>
>> > then read the inimaster<br>
>> > then read the inifile<br>
>><br>
>> If I understand this correctly, the config/*.ini files would be<br>
>> essentially read-only, and all local changes would be made to the<br>
>> inimaster or OpenSim.ini.  But then OpenSim.ini is not broken up, and<br>
>> it may be confusing to users why there are two sets of config files.<br>
>><br>
>> Is this just due to OpenSim's current behavior of requiring an .ini<br>
>> file to be present?  Currently the default values for all settings<br>
>> exist in the code itself and in the .ini.example file (itself an<br>
>> unfortunate duplication, but that's another topic).  Instead of<br>
>> requiring that an .ini be present, we could simply use the default<br>
>> values in the code if there is no .ini.  This would also have the<br>
>> pleasant side effect of matching the behavior when an empty .ini file<br>
>> is present.<br>
>><br>
>> Then we could break up and move OpenSim.ini.example entirely to<br>
>> config/*.ini.example files, and when the user wants to change a value,<br>
>> create foo.ini based on foo.ini.example (copying the whole file if<br>
>> they want everything, or only adding the options they want to<br>
>> explicitly set).<br>
>><br>
>> Then I guees the load order would be:<br>
>>  - read inimaster (if present)<br>
>>  - read config/*.ini (if present)<br>
>>  - use defaults in code for anything not set<br>
>><br>
>> I think this would also avoid the merging problem, if users only add<br>
>> options they're explicitly setting to the *.ini files.  It would also<br>
>> remove the annoyance of having to copy the .ini.example file over<br>
>> every time on a new install.<br>
>><br>
>> Jeff<br>
>> _______________________________________________<br>
>> Opensim-dev mailing list<br>
>> <a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
>> <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
> _______________________________________________<br>
> Opensim-dev mailing list<br>
> <a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
> <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
><br>
><br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br><a href="http://K-grid.com">http://K-grid.com</a><br>Just be cause it's Kool<br>
</div>