Hello Dale. To answer your question : The equivalent of source in python is execfile(filename). That should work the way you said.
charlie/guillaume On Tue, 2008-09-16 at 15:07 +1000, Dale Maggee wrote: > One more (dumb?) question: > > since I'd rather keep my zhone updated, I was thinking I could create > a > file named ~/addressbook.py, which contains: > > self.cbPhonebookReply( [ > (1, u'Kirk', '+023224433'), > (2, u'Spock', '+034433463'), > (3, u'McCoy', '+013244344'), > (4, u'Scott', '+013244344'), > (5, u'Uhura', '+013244344'), > (6, u'Sulu', '+013244344'), > (7, u'Chekov', '+456663443'), > ] ) > > and then do the python equivalent of "source ~/addressbook.py" at > line > 742. This means that I could easily keep my zhone updated and just > make > a one-line change when it gets updated... but is there / what is a > python equivalent of "source"?
Description: This is a digitally signed message part
_______________________________________________ Openmoko community mailing list firstname.lastname@example.org http://lists.openmoko.org/mailman/listinfo/community