part of script
if sys.argv[1] == 'help':
help()
elif len(sys.argv) < 5:
use()
else:
pass
host = sys.argv[1]
username = sys.argv[2]
password = sys.argv[3]
node = sys.argv[4]
opts = sys.argv[5]
this is just part of code where problem is occuring.. when i run it , error occured :
host = sys.argv[1]
IndexError: list index out of range
All were working well, but i just reinstalled python. But, now it is creating problem. This is well working in linux still.
" Through some search, i came to know that '.py association in the registry is incorrect. It's missing %* at the end.' but, i don't know how to fix it.
Current setup path in environment variable is C:\Python27;C:\Python27\Lib\site-packages\;C: \Python27\Scripts\