def check_incomplete_vs_complete():
 complete = cfg.complete_dir.get_path()
 if misc.same_file(cfg.download_dir.get_path(), complete):
  if (misc.real_path('X', cfg.download_dir()) == cfg.download_dir()):
   cfg.download_dir.set(os.path.join(complete, 'incomplete'))
  else:
   cfg.download_dir.set('incomplete')

def check_incomplete_vs_complete ( ) : complete = cfg . complete_dir . get_path ( ) if misc . same_file ( cfg . download_dir . get_path ( ) , complete ) : if ( misc . real_path ( 'X' , cfg . download_dir ( ) ) == cfg . download_dir ( ) ) : cfg . download_dir . set ( os . path . join ( complete , 'incomplete' ) ) else : cfg . download_dir . set ( 'incomplete' )
make sure "incomplete" and "complete" are not identical .