anontwi 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-"
  3. # vim: set expandtab tabstop=4 shiftwidth=4:
  4. """
  5. $Id$
  6. This file is part of the anontwi project, http://anontwi.03c8.net
  7. Copyright (c) 2011/2012/2013/2014/2015 by psy <epsylon@riseup.net>
  8. anontwi is free software; you can redistribute it and/or modify it under
  9. the terms of the GNU General Public License as published by the Free
  10. Software Foundation version 3 of the License.
  11. anontwi is distributed in the hope that it will be useful, but WITHOUT ANY
  12. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  13. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  14. details.
  15. You should have received a copy of the GNU General Public License along
  16. with anontwi; if not, write to the Free Software Foundation, Inc., 51
  17. Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. """
  19. from core.main import anontwi
  20. class NullOutput(object):
  21. def write(self, text):
  22. pass
  23. def flush(self):
  24. pass
  25. if __name__ == "__main__":
  26. app = anontwi()
  27. options = app.create_options()
  28. if options:
  29. app.set_options(options)
  30. app.run()