Skip to content

Commit c367f91

Browse files
committed
feat: ファイルが出来た
1 parent a8785eb commit c367f91

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 2.14.1 / 2024/11/04
4+
Release version 2.14.1
5+
* 小文字のファイルも追加するように
6+
37
## 2.14.1 / 2024-10-19
48
Release version 2.14.1
59
* llmがどうたらみたいな記述を削除

atcodertools/executils/run_command.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import subprocess
22
import locale
3-
from logging import getLogger
4-
5-
logger = getLogger(__name__)
6-
73

84
def run_command(exec_cmd: str, current_working_dir: str) -> str:
9-
logger.info("Running command: " + exec_cmd)
105
proc = subprocess.run(exec_cmd,
116
shell=True,
127
stdout=subprocess.PIPE,

atcodertools/tools/envgen.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,10 @@ def emit_info(text):
147147
code_file_path)
148148
emit_info("Saved code to {}".format(code_file_path))
149149

150-
logger.info("Creating alphabet file" + problem.get_alphabet())
151-
logger.info("Creating alphabet file" + os.path.join(problem_dir_path, problem.get_alphabet()))
150+
p = problem.get_alphabet().lower()+".py"
152151

153152
# create empty file for alphabet
154-
open(os.path.join(problem_dir_path, problem.get_alphabet()), 'w').close()
155-
logger.info("Creating alphabet file" + problem.get_contest().get_id())
153+
open(os.path.join(problem_dir_path, p), 'w').close()
156154

157155
# Save metadata
158156
metadata_path = os.path.join(problem_dir_path, "metadata.json")

atcodertools/tools/setter.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ def main(prog, args) -> None:
9595
a = ["--lang", output_metadata.lang.name, url]
9696
if args.without_login:
9797
a.append("--without-login")
98-
logger.info(f"Generating {output_metadata.lang.name} code...")
99-
logger.info(f"{main_code_filename=}")
100-
logger.info(f"{output_metadata.problem.problem_id=}")
101-
logger.info(f"{output_metadata.problem.contest.contest_id=}")
102-
logger.info(f"{output_metadata.problem.alphabet=}")
103-
# alphabetの空のファイルを作成
104-
open(os.path.join(args.dir, output_metadata.problem.alphabet), 'w').close()
10598

10699
codegen_main("", a, open(main_code_filename, 'w'))
107100
else:

0 commit comments

Comments
 (0)