Skip to content

Commit

Permalink
case-insensitive extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
96-LB committed Dec 19, 2020
1 parent ee14bb9 commit a75a733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os, sys, subprocess

file = sys.argv[1] if len(sys.argv) > 1 else input('Filename?')
extension = file.split('.')[-1] if '.' in file else ''
extension = file.split('.')[-1].lower() if '.' in file else ''
language = extension if extension in ['py', 'java', 'class'] else input('Language?').lower()
problem = input('Problem?')

Expand Down

0 comments on commit a75a733

Please sign in to comment.