FSO milestone3 my view (ON gta01)
Guillaume Chereau
charlie at openmoko.org
Tue Sep 16 09:53:59 CEST 2008
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"?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.openmoko.org/pipermail/community/attachments/20080916/cf8af119/attachment.pgp
More information about the community
mailing list