Namespaces

Fredrik Juhlin laz at strakt.com
Tue Apr 16 07:08:18 EDT 2002


On Tue, Apr 16, 2002 at 08:52:29PM +1000, Graeme Matthew wrote:
<snip>
> #! C:\\python22\\python.exe
> 
> import sys
> 
> sys.path.append('C:\\www\\classes')
> import Template
> 
> template = Template.Template()
> 
> print "done"
> 
> I cannot get it to instantiate like
> 
> template = Template()

Try to replace your import row with:
from Template import Template

//FJ





More information about the Python-list mailing list