old_contents: """
      Module for common shared objects.
  """
  
  
  import json
  from os.path import dirname
  
  import xoinvader
  from xoinvader.settings import Settings as Entry
  from xoinvader.utils import Point
  
  
  def get_json_config(path):
      """Return Settings object made from json."""
      with open(path) as fd:
          config = Entry(json.load(fd))
      return config
  
  def rootify(root, config):
      "Append paths in dict to root."
      for key, path in config.items():
          if isinstance(path, dict):
              rootify(root, path)
          else:
              config[key] = root + path
      return config
  
  
  __all__ = ["Settings"]
  
  WIDTH = 90
  HEIGHT = 34
  
  _ROOT = dirname(xoinvader.__file__)
  _CONFIG = _ROOT + "/config"
  _RES = _ROOT + "/res"
  _SND = _RES + "/snd"
  
  DEFAUT_XOI_SETTINGS = dict(
      layout=dict(
          field=dict(
              border=Point(x=WIDTH, y=HEIGHT),
              player=Point(x=WIDTH // 2, y=HEIGHT - 1),
              edge=Point(x=WIDTH, y=HEIGHT - 1)),
  
          gui=dict(
              bar=dict(
                  health=Point(x=2, y=HEIGHT - 1),
                  shield=Point(x=22, y=HEIGHT - 1),
                  weapon=Point(x=WIDTH - 18, y=HEIGHT - 1)),
              info=dict(
                  weapon=Point(x=44, y=HEIGHT - 1)))),
      path=rootify(_ROOT, get_json_config(_ROOT + "/config/path.json")),
      color=dict(
          general=dict(
              normal=None),
          gui=None,
          weapon=None),
      system=dict(
          no_sound=False
      )
  )
  
  Settings = Entry(DEFAUT_XOI_SETTINGS)
  
new_contents: """Module for common shared objects."""
  
  
  import json
  from os.path import dirname
  
  import xoinvader
  from xoinvader.settings import Settings as Entry
  from xoinvader.utils import Point
  
  
  def get_json_config(path):
      """Return Settings object made from json."""
      with open(path) as fd:
          config = Entry(json.load(fd))
      return config
  
  def rootify(root, config):
      "Append paths in dict to root."
      for key, path in config.items():
          if isinstance(path, dict):
              rootify(root, path)
          else:
              config[key] = root + path
      return config
  
  
  __all__ = ["Settings"]
  
  WIDTH = 90
  HEIGHT = 34
  
  _ROOT = dirname(xoinvader.__file__)
  _CONFIG = _ROOT + "/config"
  _RES = _ROOT + "/res"
  _SND = _RES + "/snd"
  
  DEFAUT_XOI_SETTINGS = dict(
      layout=dict(
          field=dict(
              border=Point(x=WIDTH, y=HEIGHT),
              player=Point(x=WIDTH // 2, y=HEIGHT - 1),
              edge=Point(x=WIDTH, y=HEIGHT - 1)),
  
          gui=dict(
              bar=dict(
                  health=Point(x=2, y=HEIGHT - 1),
                  shield=Point(x=22, y=HEIGHT - 1),
                  weapon=Point(x=WIDTH - 18, y=HEIGHT - 1)),
              info=dict(
                  weapon=Point(x=44, y=HEIGHT - 1)))),
      path=rootify(_ROOT, get_json_config(_ROOT + "/config/path.json")),
      color=dict(
          general=dict(
              normal=None),
          gui=None,
          weapon=None),
      system=dict(
          no_sound=False
      )
  )
  
  Settings = Entry(DEFAUT_XOI_SETTINGS)
  
subject: Fix module docstring.