def clean_up(verbose=False, keep=[]): """ Cleans up the temporary pool folders. Keyword arguments: verbose -- A boolean indicating if debugging o utput should be given. (default=False) """ from openexp import canvas global pool_folders if verbose: print(u"experiment.clean_up()") for path in pool_folders: if path in keep: continue if verbose: print(u"experiment.clean_up(): removing '%s'" % path) try: shutil.rmtree(path) except: if verbose: print(u"experiment.clean_up(): failed to remove '%s'" % path) canvas.clean_up(verbose)
def clean_up(verbose=False, keep=[]): """ Cleans up the temporary pool folders. Keyword arguments: verbose -- A boolean indicating if debugging o utput should be given. (default=False) """ from openexp import canvas global pool_folders if verbose: print(u"experiment.clean_up()") for path in pool_folders: if path in keep: continue if verbose: print(u"experiment.clean_up(): removing '%s'" % path) try: shutil.rmtree(path) except: if verbose: print(u"experiment.clean_up(): failed to remove '%s'" % path) canvas.clean_up(verbose)
def clean_up(verbose = False): """ Clean up the temporary pool folders Keyword arguments: verbose -- a boolean indicating if debugging output should be given (default = False) """ from openexp import canvas global pool_folders if verbose: print "experiment.clean_up()" for path in pool_folders: if verbose: print "experiment.clean_up(): removing '%s'" % path try: shutil.rmtree(path) except: if verbose: print "experiment.clean_up(): failed to remove '%s'" % path canvas.clean_up(verbose)
def clean_up(verbose=False): """ Clean up the temporary pool folders Keyword arguments: verbose -- a boolean indicating if debugging output should be given (default = False) """ from openexp import canvas global pool_folders if verbose: print "experiment.clean_up()" for path in pool_folders: if verbose: print "experiment.clean_up(): removing '%s'" % path try: shutil.rmtree(path) except: if verbose: print "experiment.clean_up(): failed to remove '%s'" % path canvas.clean_up(verbose)