def _restoreResults(newdir,origdir):
    """ Move (not copy) all files from newdir back to the original directory
    """
    for fname in glob.glob(os.path.join(newdir,'*')):
        shutil.move(fname,os.path.join(origdir,os.path.basename(fname)))
def _restoreResults ( newdir , origdir ) : for fname in glob . glob ( os . path . join ( newdir , '*' ) ) : shutil . move ( fname , os . path . join ( origdir , os . path . basename ( fname ) ) )
Move (not copy) all files from newdir back to the original directory