called with sep appended to base_path as an argument and results of the function normcase called twice with final_path, and base_pah are not equal and directory name of the result of the function normcase called with an argument base_path, if not equal to the result of the function normcase called with an argument base_path. raise an ValueError with an argument string 'The joined path (%s) is located outside of the base path component (%s)',
raise ValueError ( 'The joined path (%s) is located outside of the base ' 'path component (%s)' % ( final_path , base_path ) )