text: #!/usr/bin/env python
  import os
  
  import sys
  
  extension_DIRECTORY = os.path.realpath(os.path.curdir)
  
  def remove_file(filepath):
      os.remove(os.path.join(extension_DIRECTORY, filepath))
  
  
  if __name__ == '__main__':
  
      if '{{ cookiecutter.use_pypi_deployment_with_travis }}' != 'y':
          remove_file('travis_pypi_setup.py')
  
      if '{{ cookiecutter.create_author_file }}' != 'y':
          remove_file('AUTHORS.rst')
          remove_file('docs/authors.rst')
  
      if 'no' in '{{ cookiecutter.command_line_interface|lower }}':
          cli_file = os.path.join('{{ cookiecutter.extension_folder_name }}', 'cli.py')
          remove_file(cli_file)
  
      if 'Not open source' == '{{ cookiecutter.open_source_license }}':
          remove_file('LICENSE')
  
  