Skip to content

Commit

Permalink
[feat/#97] Fix: values.txt path
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Sep 29, 2023
1 parent 8fb6d66 commit ad910cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/images/professor-ubuntu/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ async def get_assignment(id: str, assignment_id: str):
f"/bin/bash {curr_path}/getValueAndTime_cpp.sh {file_path} {dir_path}")
else:
print("지원되지 않는 파일 형식입니다.")
f = open(f"{curr_path}/values.txt", "r")
f = open(f"{dir_path}/values.txt", "r")
values = f.read()
return_dict["answer"] = values
f.close()
f = open(f"{curr_path}/time.txt", "r")
f = open(f"{dir_path}/time.txt", "r")
time = f.read()
return_dict["runtime"] = time
f.close()
Expand Down

0 comments on commit ad910cd

Please sign in to comment.