Re: Finding the local directory of a file in the python path

2011-05-17 Thread are Dogue
Nevermind... os.path.dirname (__file__) On May 17, 9:44 pm, are Dogue wrote: > Hi there, > > I have a problem that I can't seem to solve after quite a bit of > searching, probably because I can't find the right terms to search > for. > > Basically, here's th

Finding the local directory of a file in the python path

2011-05-17 Thread are Dogue
Hi there, I have a problem that I can't seem to solve after quite a bit of searching, probably because I can't find the right terms to search for. Basically, here's the situation. Let's say I have a file at ~/foo/bin/ foo.py that imports a script that at ~/bar/bin/bar.py. The imported file needs