summaryrefslogtreecommitdiff
path: root/canonicalize/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'canonicalize/tools.py')
-rw-r--r--canonicalize/tools.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/canonicalize/tools.py b/canonicalize/tools.py
new file mode 100644
index 0000000..1df653a
--- /dev/null
+++ b/canonicalize/tools.py
@@ -0,0 +1,15 @@
+"""This is a file of useful functions used throughout the hint generation program"""
+import time, os.path, ast, json
+
+def log(msg, filename="main", newline=True):
+ return
+ txt = ""
+ if newline:
+ t = time.strftime("%d %b %Y %H:%M:%S")
+ txt += t + "\t"
+ txt += msg
+ if newline:
+ txt += "\n"
+ f = open('log/' + filename + ".log", "a")
+ f.write(txt)
+ f.close()