title: How to check if a python module is a egg
body: <p>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).</p>
  
  <p>What is the best way to detect if the current module was loaded from an egg file or directly from the source?</p>