aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools/__init__.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-09-30 23:10:47 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-09-30 23:10:47 +0200
commitdbd1000240535771a45912a18b38ed240a4efa18 (patch)
tree819291a711ad5bd168c5b366af5f5ca9def14b28 /src/ee/tools/__init__.py
parent122850d7a90428b6d7b92fe6100a1f2a6df2a1eb (diff)
downloadee-python-dbd1000240535771a45912a18b38ed240a4efa18.tar.gz
ee-python-dbd1000240535771a45912a18b38ed240a4efa18.tar.bz2
ee-python-dbd1000240535771a45912a18b38ed240a4efa18.tar.xz
ee-python-dbd1000240535771a45912a18b38ed240a4efa18.zip
o Reformat all.
Diffstat (limited to 'src/ee/tools/__init__.py')
-rw-r--r--src/ee/tools/__init__.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ee/tools/__init__.py b/src/ee/tools/__init__.py
index 893ee31..136bdf1 100644
--- a/src/ee/tools/__init__.py
+++ b/src/ee/tools/__init__.py
@@ -1,4 +1,5 @@
import os.path
+from colors import color
def _mkdir_and_open(path):
@@ -19,3 +20,20 @@ def mk_parents(path: str):
if not os.path.isdir(dirname):
os.mkdir(dirname)
+
+
+class Log(object):
+ def __init__(self):
+ pass
+
+ def warn(self, msg):
+ print(color(msg, "orange"))
+
+ def info(self, msg):
+ print(color(msg, "orange"))
+
+ def debug(self, msg):
+ print(color(msg, "orange"))
+
+
+log = Log()