anytime i add a directory in a .pth file of my c:\python30\Lib\site-packages folder on windows and i try to import from the listed directory in my .pth files, i get an import error that the module does not exist and after importing sys on the windows command line interface and running a sys.path command, the listed directory in my .pth file does not appear in the sys.path list

Recommended Answers

All 3 Replies

What is the name of your directory, the name of your path file, and the contents of it?

Check sys.path and see if it contains site-packages. Maybe you mean dist-packages in stead.

Look at something like
PIL.pth
the PIL package directory and it's
__init__.py file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.