cc: rename DEFAULT_STANDARD_SERVER_CONFIG -> DEFAULT_STANDARD_SERVER_CONFIG_PATH
This commit is contained in:
parent
dd9e4bdefa
commit
ea14bcc2f6
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue