Compare commits

...

2 Commits

Author SHA1 Message Date
waldek c2c06cc9fe adds a real csv for lpic1 101-500 2021-05-24 19:08:43 +02:00
waldek 6672e8d1d2 test wether the file exists before opening 2021-05-24 17:24:46 +02:00
2 changed files with 357 additions and 2129 deletions

File diff suppressed because it is too large Load Diff

View File

@ -125,6 +125,9 @@ if __name__ == "__main__":
parser.add_argument("-n", "--number", default=10, help="number of questions to ask", type=int, action="store")
args = parser.parse_args()
filepath = pathlib.Path(args.file)
if not filepath.exists():
print("no such file!")
exit(1)
interface = Tui()
app = Application(filepath, interface, args.number)
try: