'import myname' is not exactly a reliable way to get your own module object - the file may be renamed, placed in a package, affected by case-sensitivity problems, loaded from somewhere not in the path, etc. Is there any other way for a module to find itself other than searching sys.modules for a module whose __dict__ is globals()? Oren