emergent/swarm/evolutionary systems etc
Michele Simionato
michele.simionato at poste.it
Sun Apr 4 00:45:32 EST 2004
Josiah Carlson <jcarlson at uci.edu> wrote in message news:<c4ccs2$l9j$1 at news.service.uci.edu>...
> Want to run a file? (be careful though, executing the contents of a
> file can be dangerous)...
> fil = open('filename', 'rb')
> contents = fil.read()
> fil.close()
> exec(contents)
or just use execfile('filename') or even import filename.
Michele Simionato
More information about the Python-list
mailing list