old_contents: import os
  import tornado.web
  import pkg_resources
  from gosa.common import Environment
  
  
  class GuiPlugin(tornado.web.StaticFileHandler):
  
      def initialize(self):
          env = Environment.getInstance()
          path = None
          default = "index.html"
  
          if env.config.get("gui.debug", "false") == "true":  # pragma: nocover
              path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                  '..', '..', '..', '..', 'frontend')
              default = "gosa/source/index.html"
          else:
              path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                  '..', '..', '..', '..', 'frontend', 'gosa', 'build')
          super(GuiPlugin, self).initialize(path, default)
  
new_contents: import os
  import tornado.web
  import pkg_resources
  from gosa.common import Environment
  
  
  class GuiPlugin(tornado.web.StaticFileHandler):
  
      def initialize(self):
          env = Environment.getInstance()
          path = None
          default = "index.html"
  
          if env.config.get("gui.debug", "false") == "true":  # pragma: nocover
              path = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                      '..', '..', '..', '..', 'frontend'))
              default = "gosa/source/index.html"
          else:
              path = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                      '..', '..', '..', '..', 'frontend', 'gosa', 'build'))
          super(GuiPlugin, self).initialize(path, default)
  
subject: normalize paths