title: Getting name of windows computer running python script?
body: <p>I have a couple Windows computers on my network that will be running a python script.  A different set of configuration options should be used in the script depending on which computer is running this script.</p>
  <p>How would I get that computer name in the python script?</p>
  <p>Let's say the script was running on a computer named DARK-TOWER, I'd like to write something like this:</p>
  <pre><code>&gt;&gt;&gt; python.library.get_computer_name()
  'DARK-TOWER'
  </code></pre>
  <p>Is there a standard or third party library I can use?</p>