#NEWLINE# def begin( self ) : #NEWLINE# #INDENT# super ( OverlayViewRule . _Context , self ) . begin ( ) #NEWLINE# output_path = self . _get_root_path ( name = self . rule . out ) #NEWLINE# self . _ensure_output_exists ( output_path ) #NEWLINE# self . _append_output_paths ( [ output_path ] ) #NEWLINE# paths = [ ] #NEWLINE# for src_path in self . src_paths : #NEWLINE# #INDENT# rel_path = os . path . relpath ( src_path , self . build_env . root_path ) #NEWLINE# rel_path = anvil . util . strip_build_paths ( rel_path ) #NEWLINE# for prefix in self . rule . flatten_paths : #NEWLINE# #INDENT# rel_path = rel_path . replace ( prefix , '' ) #NEWLINE# #UNINDENT# paths . append ( ( src_path , rel_path ) ) #NEWLINE# #UNINDENT# d = self . _run_task_async ( _SymlinkTask ( self . build_env , paths , output_path ) ) #NEWLINE# self . _chain ( d )