#NEWLINE# def resolve_project_paths( project_file_path , project_data ) : #NEWLINE# #INDENT# if ( not project_data ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not project_file_path ) : #NEWLINE# #INDENT# return project_data #NEWLINE# #UNINDENT# resolved = dict ( project_data ) #NEWLINE# basefolder = path . dirname ( project_file_path ) #NEWLINE# for folder in resolved [ 'folders' ] : #NEWLINE# #INDENT# folder_path = folder [ 'path' ] #NEWLINE# if path . isabs ( folder_path ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# new_path = path . join ( basefolder , folder_path ) #NEWLINE# new_path = path . normpath ( new_path ) #NEWLINE# folder [ 'path' ] = new_path #NEWLINE# #UNINDENT# return resolved