Trouble with HTMLGen, HTMLtest

Dave Borgelt dborgelt at xxxxxxcom
Thu Jul 8 16:15:29 EDT 1999


Thanks.  This solved the problem.

Dave

Berthold Höllmann <bhoel at server.python.net> wrote in message
news:3784E2E7.DD86D47B at starship.python.net...
> Dave Borgelt wrote:
> >
> > Sorry to be so slow here but how would I be 'in' that directory.  I
added it
> > to my PythonPath so that the import works and the traceback shows that
the
> > system knows about looking in that directory
> > (c:\programming\python\HTMLGen\filename.py).
> >
> > What else would I need to do to get this to work?  To be 'in' that
> > directory?
> >
> > Dave Borgelt
> >
> > Berthold Höllmann <bhoel at server.python.net> wrote in message
> > news:37845270.BD3E08DD at starship.python.net...
> > > Dave Borgelt wrote:
> > > >
> > > > I am having a problem with HTMLGen that is driving me nuts.  It has
to
> > do
> > > > with running the test code in HTMLtest.  (HTMLtest.test()).
> > > >
> > > > I expect the solution is simple but I can't see it.  The path to the
> > HTMLGen
> > > > files is in my PythonPath (hence the import works) but as you can
see
> > the
> > > > test fails.
> > > >
> > > > -----------------------------
> > > >
> > > > >>> import HTMLtest
> > > > >>> HTMLtest.test()
> > > > Traceback (innermost last):
> > > >   File "<interactive input>", line 1, in ?
> > > >   File "c:\programming\python\HTMLGen\HTMLtest.py", line 26, in test
> > > >     'overview.html')      # manual top
> > > >   File "c:\programming\python\HTMLGen\HTMLtest.py", line 35, in
overview
> > > >     doc = SeriesDocument('HTMLgen.rc')
> > > >   File "c:\programming\python\HTMLGen\HTMLgen.py", line 256, in
__init__
> > > >     if resource: execfile(mpath(resource), self.__dict__)
> > > > IOError: [Errno 2] No such file or directory
> > > > >>>
> > > >
> > > > ------------------------------
> > > >
> > > > Any help will be appreciated.
> > > >
> > > > Dave Borgelt
> > >
> > > This only works in the directory where HTMLgen.rc (and probably other
> > > files) lie. This is usually the directory generated when unpacking
> > > HTMLge.
> > >
> > > Greetings
> > >
> > > Berthold
>
> try:
>
> import os
> os.chdir("c:\programming\python\HTMLGen\")
> import HTMLtest
> HTMLtest.test()
>
> Good luck
>
> Berthold
> --
> bhoel at starship.python.net / http://starship.python.net/crew/bhoel/
>         It is unlawful to use this email address for unsolicited ads
>         (USC Title 47 Sec.227). I will assess a US$500 charge for
>         reviewing and deleting each unsolicited ad.
>
>






More information about the Python-list mailing list