P
py
Hi,
I am running python 2.4.2 on win xp pro. I have the WMI module from
Tim Golden (http://tgolden.sc.sabren.com/python/wmi.html).
I have some code which does this...
MyScript.py
------------------
import wmi
# the ip of my own local desktop
machine = "1.2.3.4"
try:
w = wmi.WMI(machine) # also tried, wmi.WMI(computer=machine)
except Exception, e:
print "ERROR:", e
c:>python
.....So when I import the script I get the "invalid syntax" error (which
comes from the line, w = wmi.WMI(....))
but in the same window if I just type it in manually I get no error.
Any ideas???
I am running python 2.4.2 on win xp pro. I have the WMI module from
Tim Golden (http://tgolden.sc.sabren.com/python/wmi.html).
I have some code which does this...
MyScript.py
------------------
import wmi
# the ip of my own local desktop
machine = "1.2.3.4"
try:
w = wmi.WMI(machine) # also tried, wmi.WMI(computer=machine)
except Exception, e:
print "ERROR:", e
c:>python
.....So when I import the script I get the "invalid syntax" error (which
comes from the line, w = wmi.WMI(....))
but in the same window if I just type it in manually I get no error.
Any ideas???