Skip to content
Snippets Groups Projects

Revert "Merge branch 'trigvaltools_ca' into '23.0'"

Merged Frank Winklmeier requested to merge revert-d5b014fc into 23.0
11 files
+ 87
76
Compare changes
  • Side-by-side
  • Inline
Files
11
#
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
#
'''
@@ -73,6 +73,20 @@ def find_file_in_path(filename, path_env_var):
return None
@lru_cache
def check_job_options(jo_path):
'''
Check if the job options file exists locally or in JOBOPTSEARCHPATH.
Returns True if the file is found and False otherwise.
'''
# Check if job options exists locally
if os.path.isfile(jo_path):
return True
# Try to find the file in JOBOPTSEARCHPATH
found = find_file_in_path(jo_path, 'JOBOPTSEARCHPATH')
return found is not None
@lru_cache
def running_in_CI():
return os.environ.get('gitlabTargetBranch') is not None
Loading