def osc_fslist(directory):
 fslist = []
 for fs in os.listdir(directory):
  fir = fs.find('-')
  sec = fs.find('-', (fir + 1))
  thrd = fs.find('-', (sec + 1))
  fs_name = fs[0:fir]
  if (('num_ref' not in fs_name) and (fs_name not in fslist)):
   fslist.append(fs_name)
   (yield fs_name)

def osc_fslist ( directory ) : fslist = [ ] for fs in os . listdir ( directory ) : fir = fs . find ( '-' ) sec = fs . find ( '-' , ( fir + 1 ) ) thrd = fs . find ( '-' , ( sec + 1 ) ) fs_name = fs [ 0 : fir ] if ( ( 'num_ref' not in fs_name ) and ( fs_name not in fslist ) ) : fslist . append ( fs_name ) ( yield fs_name )
return fs names based on folder names in osc directory .