[ale] Python help for sig generator

Irv Mullins irvm at ellijay.com
Sun Mar 16 10:30:14 EST 2003


On Saturday 15 March 2003 10:28 pm, Joe wrote:

<snip>

Don't know Python, but making the changes marked with <== causes this to 
work..

# cryptic python stuff which pulls a line from a text file
# at random
affs = open(aff_file,"r")  <== 
affs = affs.readlines()    <==
aff = affs[int(random.random() * len(affs))].split("\n")[0]

Regards,
Irv
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list