def EnsureMakeDirs(cls, location): """ Helper function that will make directories if they don't exist. Useful for temporary locations""" if location and not Exists(location): from logmgr import LogMgr LogMgr.info("Creating FS Location - " + location) if not Exists(location): os.makedirs(location) return cls.ValidateExists(location)
def ensure_dir_exists(cls, dir_location): """ Helper function that will make directories if they don't exist. Useful for temporary locations""" if dir_location and not os.path.exists(dir_location): from logmgr import LogMgr LogMgr.info('Creating FS Location - ' + dir_location) if not os.path.exists(dir_location): os.makedirs(dir_location) return cls.validate_exists(dir_location)
def setCoverageRun(cls): from logmgr import LogMgr LogMgr.info("Setting Coverage Run") cls._showGui = False