Also, I'm pretty sure that for both *nix and Windows a process inherits a *copy* of the environment from the parent process and can only change the copy.. so unless that program spawns processes, it cant really manipulate an environment that any other program will be able to see. I don't believe there's any way for a program to manipulate an environment for the parent process unless the parent process is specifically written to provide a means for a child process to do so.<br>
<br><div class="gmail_quote">On Wed, Nov 23, 2011 at 12:55 AM, Dahlia Trimble <span dir="ltr"><<a href="mailto:dahliatrimble@gmail.com">dahliatrimble@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
At one time I had some code in there that would look at an environment variable and use it to set the external hostname for the region. I think that code has since been removed by someone else but I remember I did use a standard .NET call to do it, probably System.Environment.GetEnvironmentVariable()<div>

<br></div><div><font color="#888888">-d</font><div><div></div><div class="h5"><br><div><br><div class="gmail_quote">On Tue, Nov 22, 2011 at 3:34 PM, BlueWall <span dir="ltr"><<a href="mailto:jamesh@bluewallgroup.com" target="_blank">jamesh@bluewallgroup.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi All,<br>
<br>
About a year ago, I was working on the Fortis-OpenSim project and had started digging into the configuration system a bit. One of the things I wanted to to was provide the means to interact with shell environment variables during the configuration. So, I studied the insides of Nini and added support for the environment variables in a way that lets it deal with the shell environment like already interacts with ini/xml/registry configuration media. I tried contacting the Nini author to ask if they would incorporate the changes into their distribution, but Nini development has been dormant for some time and I never got a response.<br>


<br>
A few days ago, I had a conversation in IRC about environment variable support and decided to look at putting it into OpenSim. And today I was able to use the modified Nini to get it working. I have done some testing here and it works well. I want to push this to core, but I wanted to discuss the forking of Nini. How does everyone feel about that? I think having the ability to manipulate shell variables is pretty good for us, and seeing that the Nini development has been dormant so long it shouldn't be as much of an issue. If development starts back up on it, then I'm pretty sure we could get the changes into the distributed version.<br>


<br>
Thanks!<br>
BlueWall<br>
<br>
PS: for reference - <a href="http://pastebin.com/f3R0sk5N" target="_blank">http://pastebin.com/f3R0sk5N</a><br>
<br>
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br>