append the result to sql_files. join into a file path: app_dir and string %s.%s.sql, where '%s' is replaced by opts.model_name, append the result to sql_files.
sql_files . append ( os . path . join ( app_dir , "%s.sql" % opts . model_name ) )