Re: .pth - howto?

2005-11-17 Thread flippetigibbet
Ok, I think I've finally worked out where my error was. My .pth file had: C:\Documents and Settings\user\My Documents\my\scripts\py\mydir and I was importing mydir, but that's wrong. I changed my .pth to have: C:\Documents and Settings\user\My Documents\my\scripts\py and imported mydir and it wo

Re: .pth - howto?

2005-11-17 Thread flippetigibbet
I've just realized. I dropped a copy of my script in site-packages, in order to get it working. When I remove that, I'm back to the orginal problem. If I add the pdb tracing in site.py, I reply 'r' as it enters each function, then I try and import my module and ... >>> import textfile Traceback (m

Re: .pth - howto?

2005-11-17 Thread flippetigibbet
I inserted the 'import pdb...' suggestions and set the .pth back to the first thing I'd tried: C:\Documents and Settings\user\My Documents\my\scripts\py\mydir and lo and behold - it works!! Then I took out the "import pdb ...' and ... it still works!! What did you do to my system to get it to wor

.pth - howto?

2005-11-17 Thread flippetigibbet
I was thinking that if I create: \documents and settings\user\My Documents\my\scripts\py\dirname\__init__.py and a .pth file in site-packages with something like: \documents and settings\user\My Documents\my\scripts\py\dirname then my script __init__.py should run when I import dirname but it doesn