Still cleaning up.

This commit is contained in:
Romain Dorgueil
2017-11-01 19:02:48 +01:00
parent ddd84c4f50
commit 23404d06dd
3 changed files with 10 additions and 26 deletions

View File

@ -1,3 +0,0 @@
ON_START = 'bonobo.on_start'
ON_TICK = 'bonobo.on_tick'
ON_STOP = 'bonobo.on_stop'

View File

@ -1,23 +0,0 @@
def require(package, requirement=None):
requirement = requirement or package
try:
return __import__(package)
except ImportError:
from colorama import Fore, Style
print(
Fore.YELLOW,
'This example requires the {!r} package. Install it using:'.
format(requirement),
Style.RESET_ALL,
sep=''
)
print()
print(
Fore.YELLOW,
' $ pip install {!s}'.format(requirement),
Style.RESET_ALL,
sep=''
)
print()
raise