ATLAS Offline Software
DataQualityConfigurations/python/_resolve_data_path.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 import os
3 import logging
4 logging.basicConfig()
5 
7  if 'DATAPATH' not in os.environ:
8  logging.error('DATAPATH not found! Have you actually set up a release?')
9  return None
10  for possible_dir in os.environ['DATAPATH'].split(':'):
11  hypo = os.path.join(possible_dir, fin)
12  if os.path.exists(hypo):
13  return hypo
14  return None
python._resolve_data_path.resolve_data_path
def resolve_data_path(fin)
Definition: DataQualityConfigurations/python/_resolve_data_path.py:6
Trk::split
@ split
Definition: LayerMaterialProperties.h:38