code: def python_path(self, script):
          
          if not script:
              try:
                  import __main__
                  script = getfile(__main__)
              except Exception:  # pragma    nocover
                  return
          script = os.path.realpath(script)
          if self.cfg.get('python_path', True):
              path = os.path.dirname(script)
              if path not in sys.path:
                  sys.path.insert(0, path)
          return script
docs: Called during initialisation to obtain the ``script`` name.
  
          If ``script`` does not evaluate to ``True`` it is evaluated from
          the ``__main__`` import. Returns the real path of the python
          script which runs the application.