I am working on a module that may or may not be loaded from an egg file, and for each case, there should be a different action (setting up of the module).
What is the best way to detect if the current module was loaded from an egg file or directly from the source?