summaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2023-01-04 21:46:23 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2023-01-04 21:46:23 -0500
commit6373305f20fdbb47cb6f676cf462374e043dedf6 (patch)
treea022bb2fbfebd2ace7ce15a4d82d0b77403a9572 /common.py
download2022-master.tar.gz
initial importHEADmaster
Diffstat (limited to 'common.py')
-rw-r--r--common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.py b/common.py
new file mode 100644
index 0000000..fb1be19
--- /dev/null
+++ b/common.py
@@ -0,0 +1,4 @@
+import sys
+
+def day():
+ return sys.argv[0].split(".")[0].removeprefix("problem")