title: Obtain just the current module's name in Python
body: <p>How can you just obtain the current module's name in Python. </p>
  
  <pre><code> print(sys.modules[__name__])
  </code></pre>
  
  <p>Results in output of the form:</p>
  
  <pre><code>&lt;module 'MODULE_NAME' from 'C:\\file_path_to_module_name\\MODULE_NAME.py'&gt;
  </code></pre>
  
  <p>I just want to print <code>MODULE_NAME</code></p>