old_contents: #
  # Copyright (c) 2019 UAVCAN Development Team
  # This software is distributed under the terms of the MIT License.
  # Author: Pavel Kirienko <pavel.kirienko@zubax.com>
  #
  
  import os
  import sys
  import pathlib
  import pyuavcan
  
  # Base data directory. The location is OS-dependent.
  if hasattr(sys, 'getwindowsversion'):  # pragma: no cover
      _appdata_env = os.getenv('LOCALAPPDATA') or os.getenv('APPDATA')
      assert _appdata_env, 'Cannot determine location of the app data directory'
      BASE_DATA_DIR = pathlib.Path(_appdata_env, 'UAVCAN', 'PyUAVCAN')
  else:
      BASE_DATA_DIR = pathlib.Path('~/.uavcan/pyuavcan').expanduser()
  
  # This path is unique per library version.
  VERSION_SPECIFIC_DATA_DIR = BASE_DATA_DIR / f'v{pyuavcan.__version__}'
  
  # Version-specific so that we won't attempt to load packages generated by another version.
  DEFAULT_DSDL_GENERATED_PACKAGES_DIR = VERSION_SPECIFIC_DATA_DIR / 'dsdl-generated-packages'
  
  # Version-specific so that we won't attempt to restore transfer-ID maps stored from another version.
  EMITTED_TRANSFER_ID_MAP_DIR = VERSION_SPECIFIC_DATA_DIR / 'emitted-transfer-id-maps'
  # This is not a path but a related parameter so it's kept here. Files older that this are not used.
  EMITTED_TRANSFER_ID_MAP_MAX_AGE = 10.0  # [second]
  
  DEFAULT_PUBLIC_REGULATED_DATA_TYPES_ARCHIVE_URL = \
      'https://github.com/UAVCAN/public_regulated_data_types/archive/a532bfa7.zip'
  
new_contents: #
  # Copyright (c) 2019 UAVCAN Development Team
  # This software is distributed under the terms of the MIT License.
  # Author: Pavel Kirienko <pavel.kirienko@zubax.com>
  #
  
  import os
  import sys
  import pathlib
  import pyuavcan
  
  # Base data directory. The location is OS-dependent.
  if hasattr(sys, 'getwindowsversion'):  # pragma: no cover
      _appdata_env = os.getenv('LOCALAPPDATA') or os.getenv('APPDATA')
      assert _appdata_env, 'Cannot determine location of the app data directory'
      BASE_DATA_DIR = pathlib.Path(_appdata_env, 'UAVCAN', 'PyUAVCAN')
  else:
      BASE_DATA_DIR = pathlib.Path('~/.uavcan/pyuavcan').expanduser()
  
  # This path is unique per library version.
  VERSION_SPECIFIC_DATA_DIR = BASE_DATA_DIR / f'v{pyuavcan.__version__}'
  
  # Version-specific so that we won't attempt to load packages generated by another version.
  DEFAULT_DSDL_GENERATED_PACKAGES_DIR = VERSION_SPECIFIC_DATA_DIR / 'dsdl-generated-packages'
  
  # Version-specific so that we won't attempt to restore transfer-ID maps stored from another version.
  EMITTED_TRANSFER_ID_MAP_DIR = VERSION_SPECIFIC_DATA_DIR / 'emitted-transfer-id-maps'
  # This is not a path but a related parameter so it's kept here. Files older that this are not used.
  EMITTED_TRANSFER_ID_MAP_MAX_AGE = 60.0  # [second]
  
  DEFAULT_PUBLIC_REGULATED_DATA_TYPES_ARCHIVE_URL = \
      'https://github.com/UAVCAN/public_regulated_data_types/archive/a532bfa7.zip'
  
subject: Increase the TID-map file validity period