Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: environment fingerprint

Reply
Thread Tools

Re: environment fingerprint

 
 
Andrew Berg
Guest
Posts: n/a
 
      01-29-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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: environment fingerprint Chris Angelico Python 0 01-30-2013 12:18 AM
Re: environment fingerprint Jabba Laci Python 0 01-29-2013 11:33 PM
environment fingerprint Jabba Laci Python 0 01-29-2013 01:18 PM
Microsoft FingerPrint Reader Javier Camacho ASP .Net 3 10-21-2005 08:11 PM
Verify PuTTy Key fingerprint using the PIX finesse spamdozer@yahoo.com Cisco 0 01-31-2005 04:19 AM



Advertisments