ganga.GangaCore.Lib.Checkers.FileChecker module

Checks if string is in file. self.searchStrings are the files you would like to check for. self.files are the files you would like to check. self.failIfFound (default = True) decides whether to fail the job if the string is found. If you set this to false the job will fail if the string isnt found. self.fileMustExist toggles whether to fail the job if the specified file doesn’t exist (default is True).

ganga.GangaCore.Lib.Checkers.FileChecker.const_lock

This is a context manager which acquires the const write lock on the object’s root object.

This lock acquires exclusive access over an object tree to prevent it from changing. Reading schema attributes on the object is still allowed but changing them is not. Only one thread can hold this lock at once.