예제 #1
0
 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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
 def setCoverageRun(cls):
     from logmgr import LogMgr
     LogMgr.info("Setting Coverage Run")
     cls._showGui = False