mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-11-01 08:04:12 +01:00
24 lines
354 B
Perl
24 lines
354 B
Perl
---
|
|
to: <%= dir %>/python/main.py
|
|
unless_exists: true
|
|
---
|
|
#!/usr/bin/env python
|
|
|
|
from os.path import join, dirname
|
|
|
|
# Day <%= day %>
|
|
|
|
# Common
|
|
|
|
|
|
def read_input(filename):
|
|
data = join(dirname(__file__), '..', filename)
|
|
with open(data) as f:
|
|
return f.read().strip()
|
|
|
|
|
|
test = read_input('test.txt')
|
|
data = read_input('input.txt')
|
|
|
|
# Running
|