-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutility.py
42 lines (35 loc) · 1.99 KB
/
utility.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""Various utility methods."""
import settings
def log(str, force=False):
"""Print to the logs."""
if force or settings.verbose:
print str
def debug(str):
"""Print a debugging message."""
if settings.debug:
print "DEBUG: " + str
def log_welcome():
"""Print the welcome splash."""
print "\n\
\n\
_ _ _ _ \n\
( ` ) (_I_) \n\
(_{;}_) (_(=)_) \n\
(_,_) (_I_) \n\
.-''-. ______ .-''-. ,---. .--._ _ \n\
_ .'_ _ \ | _ `''. .'_ _ \ | \ | |_I_) _ \n\
_( )_ / ( ` ) '| _ | ) _ \ / ( ` ) '| , \ | |(=)_)_( )_ \n\
(_ o _) . (_ o _) ||( ''_' ) |. (_ o _) || |\_ \| |_I_)(_ o _) \n\
(_,_) /)| (_,_)___|| . (_) `. || (_,_)___|| _( )_\ |)/ (_,_) /)\n\
(/``|\._.'/ ' \ .---.|(_ ._) '' \ .---.| (_ o _) | (/``|\._.'/\n\
`._.' \ `-' /| (_.\.' / \ `-' /| (_,_)\ | `._.'\n\
\ / | .' \ / | | | | \n\
`'-..-' '-----'` `'-..-' '--' '--' \n\
_ _ _ _ \n\
( ' ) _ _ ( ' ) \n\
(_{;}_)( ' ) (_{;}_) \n\
(_,_)(_{;}_) (_,_) \n\
(_,_) \n\
\n\
"
print "Loading . . ."