Skip to content

Commit 2feffa1

Browse files
committed
#87 fix bug
1 parent 855f9f1 commit 2feffa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atcodertools/tools/submit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def main(prog, args, credential_supplier=None, use_local_session_cache=True) ->
9999
metadata.problem.contest.get_submissions_url(submission)), Fore.LIGHTRED_EX))
100100
return False
101101

102-
code_path = os.path.join(args.dir, metadata.code_filename)
102+
code_path = args.code or os.path.join(args.dir, metadata.code_filename)
103103
with open(code_path, 'r') as f:
104104
source = f.read()
105105
detailed_lang = infer_detailed_lang(metadata.lang)

0 commit comments

Comments
 (0)