On 2009-11-18, Diez B. Roggisch <de...@nospam.web.de> wrote: > hong zhang wrote: >>> >>> > but following is good. >>> > >>> > cont_tx = 1 >>> > for i in >>> glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'): >>> >with open(i, 'w') as f: >>> >print >>f, >>> cont_tx >>> >>> Well, if that works, then what's your problem? >> >> But error comes from following, above is good. That is point here. >> >> def do_cont_tx( is_start): >> global cont_tx_started, stdscr >> if is_start == START and not cont_tx_started: >> cont_tx = 1 >> for i in >> glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'): >> with open(i, 'w') as f: print >>f, cont_tx -- > > "cont_x --" doesn't work. So the above can't be the actual code.
You never want to post the actual code you're running. That would make it too easy for people to help. -- Grant Edwards grante Yow! My mind is making at ashtrays in Dayton ... visi.com -- http://mail.python.org/mailman/listinfo/python-list