"Jürgen Hermann" wrote: > ### mypath.py > import sys > print sys.modules[__name__].__file__ > > [d:\tmp]python -c "import mypath" > mypath.py Well, that's just the filename. What I'm looking for is the complete path, "d:\tmp\mypath.py" in this case. Carsten.