2005-05-25, 19:57
anything wrong with this code..?
import sys
if len(sys.argv) < 3:
print "error: need two parameters, host and port to listen"
sys.exit(4)
i get this error:
25-05-2005 19:39:31 info traceback (most recent call last):
25-05-2005 19:39:31 info file "q:\scripts\test2.py", line 12, in ?
25-05-2005 19:39:31 info
25-05-2005 19:39:31 info if len(sys.argv) < 3:
25-05-2005 19:39:31 info attributeerror
25-05-2005 19:39:31 info :
25-05-2005 19:39:31 info 'module' object has no attribute 'argv'
xmbc-2005-05-22 in case this info is needed, any other script is working.
cheers
gg
import sys
if len(sys.argv) < 3:
print "error: need two parameters, host and port to listen"
sys.exit(4)
i get this error:
25-05-2005 19:39:31 info traceback (most recent call last):
25-05-2005 19:39:31 info file "q:\scripts\test2.py", line 12, in ?
25-05-2005 19:39:31 info
25-05-2005 19:39:31 info if len(sys.argv) < 3:
25-05-2005 19:39:31 info attributeerror
25-05-2005 19:39:31 info :
25-05-2005 19:39:31 info 'module' object has no attribute 'argv'
xmbc-2005-05-22 in case this info is needed, any other script is working.
cheers
gg