<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefan Andersson wrote:
<blockquote id="mid_BLU134-W24D150B948F66CCA796525D5090_phx_gbl"
 cite="mid:BLU134-W24D150B948F66CCA796525D5090@phx.gbl" type="cite">
  <style>#mid_BLU134-W24D150B948F66CCA796525D5090_phx_gbl .hmmessage p { margin: 0px; padding: 0px; }
#mid_BLU134-W24D150B948F66CCA796525D5090_phx_gbl .hmmessage { font-size: 10pt; font-family: Tahoma; }
  </style>
  <div style="text-align: left;">Uh. Another approach would be to
actually use the 'merge' functionality of nini so that we could have
the .example as a fallback defaults file.<br>
  </div>
</blockquote>
i think that's what alan is proposing ;-)<br>
<blockquote id="mid_BLU134-W24D150B948F66CCA796525D5090_phx_gbl"
 cite="mid:BLU134-W24D150B948F66CCA796525D5090@phx.gbl" type="cite">
  <div style="text-align: left;"><br>
(It should then probably not be called '.example' but rather '.default')<br>
  <br>
So, by just adding another line of code, we'd have opensim.ini as an
optional local override of entries in opensim.default - then we can
change and add to opensim.default, and peoples local changes are kept
untouched. The startup can create an empty opensim.ini (with just a
comment with an url to a wiki page or something) if there is none on
start.<br>
  <br>
(All this provided the opensim.ini is actually parsed by nini, but if
it isn't, it should be)<br>
  <br>
Best,<br>
/Stefan<br>
  <br>
  </div>
  <br>
  <br>
  <br>
  <blockquote id="StationeryCiteGenerated_1">
    <hr id="EC_stopSpelling">Date: Thu, 13 Mar 2008 21:57:24 +0100<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:DrScofield@xyzzyxyzzy.net">DrScofield@xyzzyxyzzy.net</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:opensim-dev@lists.berlios.de">opensim-dev@lists.berlios.de</a><br>
Subject: Re: [Opensim-dev] Autocreated OpenSim.ini<br>
    <br>
Alan M Webb wrote:
    <blockquote
 id="EC_mid_OF20F161FE_92B13FD2-ON8525740B_0057596A-8525740B_0057E212_us_ibm_com"
 cite="mid:OF20F161FE.92B13FD2-ON8525740B.0057596A-8525740B.0057E212@us.ibm.com"><br>
      <font face="sans-serif" size="2">I think that's a great idea. I
was
pondering
it myself; I think the code generated file approach is absolutely the
wrong
way to do it.</font> <br>
      <br>
      <font face="sans-serif" size="2">Given the merging capabilities
of
the
config mechanisms couldn't we set it up to merge startup.ini (if it
exists)
after the example .ini? That way we would get overrides if they exist,
and defaults if they don't without doing any conditional copying or
munging
of files. The startup.ini can then be written out by the config
mechanism
if it didn't already exist, or if the configuration has been changed.</font>
      <br>
    </blockquote>
that sounds like a rather good idea!<br>
    <br>
    cheers,   <br>
    dirk<br>
    <br>
    <pre class="EC_moz-signature">-- 
dr dirk husemann, mathmatics and computer science, ibm zurich research lab
SL: dr scofield ---- <a moz-do-not-send="true"
 class="EC_moz-txt-link-abbreviated"
 href="mailto:drscofield@xyzzyxyzzy.net">drscofield@xyzzyxyzzy.net</a> ---- <a
 moz-do-not-send="true" class="EC_moz-txt-link-freetext"
 href="http://xyzzyxyzzy.net/" target="_blank">http://xyzzyxyzzy.net/</a>
RL: <a moz-do-not-send="true" class="EC_moz-txt-link-abbreviated"
 href="mailto:hud@zurich.ibm.com">hud@zurich.ibm.com</a> - +41 44 724 8573 - <a
 moz-do-not-send="true" class="EC_moz-txt-link-freetext"
 href="http://www.zurich.ibm.com/%7Ehud/" target="_blank">http://www.zurich.ibm.com/~hud/</a>
    </pre>
  </blockquote>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Opensim-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a>
<a class="moz-txt-link-freetext" href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="80">-- 
dr dirk husemann, mathmatics and computer science, ibm zurich research lab
SL: dr scofield ---- <a class="moz-txt-link-abbreviated" href="mailto:drscofield@xyzzyxyzzy.net">drscofield@xyzzyxyzzy.net</a> ---- <a class="moz-txt-link-freetext" href="http://xyzzyxyzzy.net/">http://xyzzyxyzzy.net/</a>
RL: <a class="moz-txt-link-abbreviated" href="mailto:hud@zurich.ibm.com">hud@zurich.ibm.com</a> - +41 44 724 8573 - <a class="moz-txt-link-freetext" href="http://www.zurich.ibm.com/~hud/">http://www.zurich.ibm.com/~hud/</a>
</pre>
</body>
</html>