Editor/extractor.py
def merge(self,prvLoc):
    """
    Input:
          Previous location of the 
          child folder conatining processed 
          frames
    Output:
            A single folder with name of the 
            parent folder conating all the frames
    """
    dest=self.path+self.destfol
    if self.dest_Flag_:
      os.mkdir(dest)
      self.dest_Flag_=False
    files=glob.glob(prvLoc+'*.png')
    files.sort()
    for file_ in files:
      folders=file_.split('/')
      folders[1]=self.destfol
      newfile_='/'.join(folders)
      printl='Moving: ',file_,'->',newfile_
      self.logger.info(printl)
      os.rename(file_,newfile_)
    os.rmdir(prvLoc)

    Input:
          Previous location of the 
          child folder conatining processed 
          frames
    Output:
            A single folder with name of the 
            parent folder conating all the frames
    
Previous location of the
child folder conatining processed
frames
Output:
A single folder with name of the
parent folder conating all the frames
Previous location of the child folder conatining processed frames Output : A single folder with name of the parent folder conating all the frames
def merge(self,prvLoc):
    dest=self.path+self.destfol
    if self.dest_Flag_:
      os.mkdir(dest)
      self.dest_Flag_=False
    files=glob.glob(prvLoc+'*.png')
    files.sort()
    for file_ in files:
      folders=file_.split('/')
      folders[1]=self.destfol
      newfile_='/'.join(folders)
      printl='Moving: ',file_,'->',newfile_
      self.logger.info(printl)
      os.rename(file_,newfile_)
    os.rmdir(prvLoc)
def merge ( self , prvLoc ) : dest = self . path + self . destfol if self . dest_Flag_ : os . mkdir ( dest ) self . dest_Flag_ = False files = glob . glob ( prvLoc + '*.png' ) files . sort ( ) for file_ in files : folders = file_ . split ( '/' ) folders [ 1 ] = self . destfol newfile_ = '/' . join ( folders ) printl = 'Moving: ' , file_ , '->' , newfile_ self . logger . info ( printl ) os . rename ( file_ , newfile_ ) os . rmdir ( prvLoc )
Input:
Previous location of the
child folder conatining processed
frames
Output:
A single folder with name of the
parent folder conating all the frames
Input : Previous location of the child folder conatining processed frames Output : A single folder with name of the parent folder conating all the frames
"""
    Input:
          Previous location of the 
          child folder conatining processed 
          frames
    Output:
            A single folder with name of the 
            parent folder conating all the frames
    """
self
prvLoc