You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.6 KiB

4 years ago
  1. # ######################### LICENCE ###############################
  2. #
  3. # Copyright (c) 2010-2016, Michele Simionato
  4. # All rights reserved.
  5. #
  6. # Redistributions of source code must retain the above copyright
  7. # notice, this list of conditions and the following disclaimer.
  8. # Redistributions in bytecode form must reproduce the above copyright
  9. # notice, this list of conditions and the following disclaimer in
  10. # the documentation and/or other materials provided with the
  11. # distribution.
  12. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  13. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  14. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  15. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. # HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  17. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  18. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  19. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  21. # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  22. # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  23. # DAMAGE.
  24. """
  25. See doc/plac.pdf, doc/plac_adv.pdf for the documentation.
  26. """
  27. import sys
  28. from plac_core import *
  29. __version__ = '0.9.6'
  30. if sys.version >= '2.5':
  31. from plac_ext import (Interpreter, import_main, ReadlineInput,
  32. stdout, runp, Monitor, default_help)
  33. try:
  34. from plac_tk import TkMonitor
  35. except ImportError:
  36. pass