Re: Guessing environment variables set origin

2009-09-12 Thread Markus Hitter
Am 11.09.2009 um 16:02 schrieb Yguaratã C. Cavalcanti: > is there any way to guess if a environment variable was set by > system of if > it was defined by the configuration files? Well, where exactly do you draw the line between "system" and "configuration file"? Ubuntu, as installed from sc

Re: Guessing environment variables set origin

2009-09-12 Thread Yguaratã C . Cavalcanti
I forgot something in the initial message, sorry. I would like to guess when a variable was defined from a system configuration file, like /etc/profile, or if it was defined by a user configuration file, such as ~/profile. Is it clear now? Actually, i am building a GUI application, using pygtk, to

Re: Guessing environment variables set origin

2009-09-12 Thread Markus Hitter
Am 12.09.2009 um 17:28 schrieb Yguaratã C. Cavalcanti: > I would like to guess when > a variable was defined from a system configuration file, like /etc/ > profile, > or if it was defined by a user configuration file, such as ~/profile. One possible way is to simply remove those user configurat