add more stuff to python-startup.py

This commit is contained in:
Martin Sekera 2021-09-15 23:33:46 +02:00
parent 5dc2f54e99
commit 1c1fe97938

View file

@ -1,7 +1,9 @@
#! /usr/bin/env python3
# encoding: utf-8
from dataclasses import dataclass, field
import datetime
import math
import sys
try:
@ -9,6 +11,11 @@ try:
except:
pass
try:
import dec8
except:
pass
# bpython gets broken by ANSI colors, so skip those
if type(__builtins__) != dict:
sys.ps1 = '\001\x1b[1;32m\002>>> \001\x1b[0m\002'