Skip to content

Commit 4141346

Browse files
committed
1 parent 859cff9 commit 4141346

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

home/.startup.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,26 @@
3030
# ps1 and ps2
3131
sys.ps1 = "{}>>> {}".format(colorama.Fore.GREEN, colorama.Style.RESET_ALL)
3232
sys.ps2 = "{}... {}".format(colorama.Fore.YELLOW, colorama.Style.RESET_ALL)
33+
del colorama
3334

3435
# colored tracebacks
3536
try:
3637
import tbvaccine
3738
except ImportError:
3839
pass
39-
finally:
40+
else:
4041
tbvaccine.add_hook(isolate=False)
42+
del tbvaccine
4143

44+
# nicer display of printed objects
45+
try:
46+
import rich
47+
except ImportError:
48+
pass
49+
else:
50+
from rich import pretty
51+
pretty.install()
52+
del pretty
4253

4354
print()
4455
# http://www.wiseoldsayings.com/python-quotes/

0 commit comments

Comments
 (0)