Basically, I have a couple of Windows computers on my network that will run a python script. The script must use a different set of configuration parameters, depending on which computer uses this script.
How do i get this computer name in python script?
Let's say the script worked on a computer called DARK-TOWER, I would like to write something like this:
>>> python.library.get_computer_name() 'DARK-TOWER'
Is there a standard or third-party library that I can use?
python windows networking
Eric Palakovich Carr Apr 28 '09 at 20:49 2009-04-28 20:49
source share