fix: automatic import + readme structur

This commit is contained in:
dqnid committed 2026-08-24 22:52:30 +02:00
1 parent 7c175c87bd
commit 3131c52c82
7 files changed
+53 -1

No files matched your search

+4 -1
View File
@@ -3,8 +3,11 @@ import sys
if __name__ == "__main__":
if sys.argv.__len__() != 2:
print("[ERROR] Only the day should be specified")
print(" $ python src/main.py 1")
print(" $ make DAY='1'")
sys.exit(-1)
module_selected = __import__(f"calendar.day_{sys.argv[1]}", fromlist=[""])
module_path = "modules.day_" + sys.argv[1]
module_selected = __import__(module_path, fromlist=[""])
module_selected.run()
Binary file not shown.
File renamed without changes.
File renamed without changes.