Move input files for Python programs to separate dir
This commit is contained in:
parent
3e09b8147e
commit
bebadf9437
@ -35,7 +35,7 @@ def sum_paths(matrix, m, n):
|
||||
@timing
|
||||
def p081():
|
||||
try:
|
||||
with open('matrix.txt', 'r', encoding='utf-8') as fp:
|
||||
with open('input/matrix.txt', 'r', encoding='utf-8') as fp:
|
||||
matrix = fp.readlines()
|
||||
except FileNotFoundError:
|
||||
print('Error while opening file matrix.txt')
|
||||
|
@ -25,7 +25,7 @@ from projecteuler import dijkstra, timing
|
||||
@timing
|
||||
def p082():
|
||||
try:
|
||||
with open('matrix.txt', 'r', encoding='utf-8') as fp:
|
||||
with open('input/matrix.txt', 'r', encoding='utf-8') as fp:
|
||||
matrix = fp.readlines()
|
||||
except FileNotFoundError:
|
||||
print('Error while opening file matrix.txt')
|
||||
|
@ -24,7 +24,7 @@ from projecteuler import dijkstra, timing
|
||||
@timing
|
||||
def p083():
|
||||
try:
|
||||
with open('matrix.txt', 'r', encoding='utf-8') as fp:
|
||||
with open('input/matrix.txt', 'r', encoding='utf-8') as fp:
|
||||
matrix = fp.readlines()
|
||||
except FileNotFoundError:
|
||||
print('Error while opening file matrix.txt')
|
||||
|
Loading…
x
Reference in New Issue
Block a user