[Pythonmac-SIG] RE: Localized project folder and .pth?
lee_cullens at mac.com
Fri Apr 1 06:32:43 CEST 2005
OS X 10.3.8 with the Mac Python add ons (and new to both Mac and
To keep a learning project together I'm creating my module files in a
folder within my account. Not using any fancy IDE yet I brought up
PythonIDE and (of course) the first import of one of my modules failed.
Having read about a .pth file I created a one liner with a full path
to my learning project folder and then looked around for where to put
it. I noticed other .pth files in /Library/Python/2.3 so I put it
there and now the imports of my modules work.
The point here is though this worked, is this the correct (normally
accepted) way to do such. That is, keeping a project's "unique"
modules in an isolated folder (or folder structure), creating a .pth
file to such and placing that file in /Library/Python/2.3?
If someone has already elaborated on this subject then please just
point me at the piece.
I don't want to develop any "bad" practices that at best annoy others
and at worst come back to bite me :~)
More information about the Pythonmac-SIG