code: def _get_settings_file(self, imu_settings_file):
          
  
          ini_file = '%s.ini' % imu_settings_file
  
          home_dir = pwd.getpwuid(os.getuid())[5]
          home_path = os.path.join(home_dir, self.SETTINGS_HOME_PATH)
          if not os.path.exists(home_path):
              os.makedirs(home_path)
  
          home_file = os.path.join(home_path, ini_file)
          home_exists = os.path.isfile(home_file)
          system_file = os.path.join('/etc', ini_file)
          system_exists = os.path.isfile(system_file)
  
          if system_exists and not home_exists:
              shutil.copyfile(system_file, home_file)
  
          return RTIMU.Settings(os.path.join(home_path, imu_settings_file))
docs: Internal. Logic to check for a system wide RTIMU ini file. This is
          copied to the home folder if one is not already found there.