D
Daniel Schüle
Hello
I wrote a simple module, which is also supposed to be used as standalone
program
after considering how to avoid multiple if's I came up with this idea
if __name__ == "__main__":
if len(sys.argv) not in (3,4):
print "usage: prog arg1 argv2 [-x]"
# etc ...
while develeoping I had my interpeter running and reloaded module
now since I am ready, I wanted to run it from cmd windows shell
but it always prints "usage ..."
I added print len(sys.arg) and it prints 1 though I am provinding more
than 1 value
C:\pool\vhd2h\python>vhd2h.py vhd.vhd vhd.h -o
1
usage: vhd2h.py vhdlFile hFile [-o]
Someone got an idea what may be wrong?
I wrote a simple module, which is also supposed to be used as standalone
program
after considering how to avoid multiple if's I came up with this idea
if __name__ == "__main__":
if len(sys.argv) not in (3,4):
print "usage: prog arg1 argv2 [-x]"
# etc ...
while develeoping I had my interpeter running and reloaded module
now since I am ready, I wanted to run it from cmd windows shell
but it always prints "usage ..."
I added print len(sys.arg) and it prints 1 though I am provinding more
than 1 value
C:\pool\vhd2h\python>vhd2h.py vhd.vhd vhd.h -o
1
usage: vhd2h.py vhdlFile hFile [-o]
Someone got an idea what may be wrong?