Michael Brown wrote:
> Hi Adam!
> 
> Adam Charrett writes:
> 
>> execfile('/tv/tvchannels.py')
>>
>> works a treat and means I don't have to keep both in sync,
> 
> This sounds exactly like the "include" function I was hoping for.  I'll give 
> this a go shortly!


Does a:
| from tvchannels import *
work? I would expect it to if /tv is included it the PYTHONPATH variable.

I've had some problems with execfile when there is a bug in the file. It 
seems that Python does throw an exception when the execfile is run from 
an imported module.

Duncan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to