Permalink
Browse files

Specify input files on the command line

  • Loading branch information...
Andreas Pauley
Andreas Pauley committed Mar 3, 2011
1 parent 1e25cf2 commit 25ddb15b24b982b39242906458703e24278b0ea0
Showing with 4 additions and 1 deletion.
  1. +4 −1 sudoku.py
View
@@ -194,4 +194,7 @@ def solve_files(*filenames):
if __name__ == '__main__':
test()
- solve_files("easy50.txt", "top95.txt", "hardest.txt")
+ if len(sys.argv) > 1:
+ solve_files(*sys.argv[1:])
+ else:
+ solve_files("easy50.txt", "top95.txt", "hardest.txt")

0 comments on commit 25ddb15

Please sign in to comment.