environment fingerprint

Andrew Berg bahamutzero8825 at gmail.com
Tue Jan 29 08:43:55 EST 2013


On 2013.01.29 07:18, Jabba Laci wrote:
> Hi,
> 
> I have a script that I want to run in different environments: on
> Linux, on Windows, on my home machine, at my workplace, in virtualbox,
> etc. In each environment I want to use different configurations. For
> instance the temp. directory on Linux would be /tmp, on Windows
> c:\temp, etc. When the script starts, I want to test the environment
> and load the corresponding config. settings. How to get an
> OS-independent fingerprint of the environment?
http://docs.python.org/3.3/library/platform.html
http://docs.python.org/3.3/library/os.html#os.environ

-- 
CPython 3.3.0 | Windows NT 6.2.9200.16461 / FreeBSD 9.1-RELEASE



More information about the Python-list mailing list