Success - Re: Trouble installing PmwContribD - no "PmwContribD.pth"
whitaker at best.com
Fri Sep 14 03:53:23 CEST 2001
Gordon McMillan <gmcm at hypernet.com> wrote in message news:<Xns911BC0768D0Fgmcmhypernetcom at 188.8.131.52>...
> Russell Whitaker wrote:
> > I'm needing the functionality documented in Doug Hellmann's
> > PmwContribD class MCScrolledListBox.py. In the docs (from
> > what I assume to be the canonical distributions at:
> > "http://sourceforge.net/projects/pmwcontribd/") is mentioned
> > a file "PmwContribD.pth" (also mentioned only here in a search:
> > "http://groups.google.com/groups?q=pmwcontribd.pth&hl=en&rnum=1&selm=399
> > BF0AA.1590C08D%40proceryon.at") which is not included in either the .gz
> > or .zip archive on SourceForge (v r1_16).
> A .pth file is a text file with one directory per line.
> Those directories will be added to your sys.path.
> The .pth file is typically (on Windows) put in your Python directory.
> So if you install a package as follows:
> other stuff...
> yet more stuff...
> then a .pth file that says:
> will make both the spam and andeggs packages available.
OK, I did that first step, slanting as "\" instead of "/".
> Typically, *nix doesn't use .pth files, but would put the
> spam and andeggs packages into site-packages.
> > I notice also that there's no __init__.py in the extracted
> > distro, either.
> Some zip tools don't like 0 length files. Just create one.
I did that too. It works! I was able to import PmwContribD.
Gordon, *thank you*! Now I'll go play with MCScrolledListBox.py...
> - Gordon
More information about the Python-list