I am using Ubuntu and IDA 6.6, the arguments could not be passed to the Python script. The command I used is:idaq64 -c -A -Smyscrip.py outpath.txt thebinpath. Here is the demo script myscript.py:import sysif len(sys.argv) == 2:    f = open(sys.argv[1],'w')else:    f = open('/home/xxx/test2.txt','w')    for s in sys.argv:        print>>f,sf.close()The output file is the test2.txt, rather than the outpath.txt I gave in the argument. There is only one argument myscript.py in the sys.argv. I guess that there might be another way of getting these parameters, is this right? Updates, the idc.ARGV seems to work fine. 
IDAPro, the arguments could not be passed to the python script
ida;idapython