Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhou5042 committed Oct 2, 2023
1 parent 9de9bc7 commit 5bf9e74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lexer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def main():
for file in os.listdir(lexer_input_dir):
# with open(lexer_input_dir + "./" + file, "r") as input_file:
with open(os.path.join(lexer_input_dir, file), "r") as input_file:
output_file = lexer_output_dir + "./" + file.split(".")[0] + ".out"
# output_file = lexer_output_dir + "./" + file.split(".")[0] + ".out"
output_file = os.path.join(lexer_output_dir, file.split(".")[0] + ".out")
if os.path.exists(output_file):
os.remove(output_file)
line = input_file.readline()
Expand Down

0 comments on commit 5bf9e74

Please sign in to comment.