#NEWLINE# def _get_src( tree_base , source , saltenv = 'base' ) : #NEWLINE# #INDENT# '\n    Get the named sources and place them into the tree_base\n    ' #NEWLINE# parsed = _urlparse ( source ) #NEWLINE# sbase = os . path . basename ( source ) #NEWLINE# dest = os . path . join ( tree_base , sbase ) #NEWLINE# if parsed . scheme : #NEWLINE# #INDENT# __salt__ [ 'cp.get_url' ] ( source , dest , saltenv = saltenv ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# shutil . copy ( source , dest )