File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/python3
22import argparse
3- from os .path import expanduser
43
54from atcodertools .executils .run_command import run_command_with_returncode
65from atcodertools .tools .models .metadata import Metadata
76from atcodertools .common .language import Language
87import os
98import pathlib
10- from atcodertools .config .config import Config , ConfigType
9+ from atcodertools .config .config import Config , ConfigType , USER_CONFIG_PATH
1110from atcodertools .tools import get_default_config_path
1211
13- USER_CONFIG_PATH = os .path .join (expanduser ("~" ), ".atcodertools.toml" )
14-
1512
1613class BadStatusCodeException (Exception ):
1714 pass
Original file line number Diff line number Diff line change 55import sys
66import traceback
77from multiprocessing import Pool , cpu_count
8- from os .path import expanduser
98import time
109from typing import Tuple
1110
2827from atcodertools .tools import get_default_config_path
2928from atcodertools .tools .models .metadata import Metadata
3029from atcodertools .tools .utils import with_color
31- from atcodertools .config .config import ConfigType
30+ from atcodertools .config .config import ConfigType , USER_CONFIG_PATH
3231
3332
3433class BannedFileDetectedError (Exception ):
@@ -223,10 +222,6 @@ def prepare_contest(atcoder_client: AtCoderClient,
223222 contest_dir_path )
224223
225224
226- USER_CONFIG_PATH = os .path .join (
227- expanduser ("~" ), ".atcodertools.toml" )
228-
229-
230225def get_config (args : argparse .Namespace ) -> Config :
231226 def _load (path : str ) -> Config :
232227 logger .info ("Going to load {} as config" .format (path ))
You can’t perform that action at this time.
0 commit comments