def get_restart_directories(self):
    """Returns a list of directories changes in which should trigger a restart.

    Returns:
      A list of src directory paths in the GOPATH. Changes (i.e. files added,
      deleted or modified) in these directories will trigger a restart of all
      instances created with this factory.
    """
    try:
      go_path = os.environ['GOPATH']
    except __HOLE__:
      return []
    else:
      if sys.platform.startswith('win32'):
        roots = go_path.split(';')
      else:
        roots = go_path.split(':')
      return [os.path.join(r, 'src') for r in roots]
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/go_runtime.py/GoRuntimeInstanceFactory.get_restart_directories