Skip to content

Commit

Permalink
fixed java
Browse files Browse the repository at this point in the history
  • Loading branch information
96-LB committed Dec 19, 2020
1 parent 099a32b commit 1335488
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
Expand Up @@ -12,7 +12,7 @@ def get_args():
if language in ['java']:
subprocess.run(['javac', file], capture_output=True, text=True, check=True)
if language in ['java', 'class']:
return ['java', os.path.splitext(os.path.basename(file))[1]]
return ['java', os.path.splitext(os.path.basename(file))[0]]
if language in ['cpp', 'c++']:
subprocess.run(['g++', file], capture_output=True, text=True, check=True)
file = 'a.exe'
Expand Down

0 comments on commit 1335488

Please sign in to comment.