cc: rename DEFAULT_STANDARD_SERVER_CONFIG -> DEFAULT_STANDARD_SERVER_CONFIG_PATH

This commit is contained in:
Mike Salvatore 2021-02-10 08:33:19 -05:00
parent dd9e4bdefa
commit ea14bcc2f6
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
from pathlib import Path
from monkey_island.cc.server_utils.consts import DEFAULT_STANDARD_SERVER_CONFIG
from monkey_island.cc.server_utils.consts import DEFAULT_STANDARD_SERVER_CONFIG_PATH
def create_default_config_file(path):
default_config = Path(DEFAULT_STANDARD_SERVER_CONFIG).read_text()
default_config = Path(DEFAULT_STANDARD_SERVER_CONFIG_PATH).read_text()
Path(path).write_text(default_config)

View File

@ -9,4 +9,4 @@ _SERVER_CONFIG_FILENAME = "server_config.json"
DEFAULT_SERVER_CONFIG_PATH = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', _SERVER_CONFIG_FILENAME)
_STANDARD_SERVER_CONFIG_FILENAME = "server_config.json.standard"
DEFAULT_STANDARD_SERVER_CONFIG = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', _STANDARD_SERVER_CONFIG_FILENAME)
DEFAULT_STANDARD_SERVER_CONFIG_PATH = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', _STANDARD_SERVER_CONFIG_FILENAME)