forked from p15670423/monkey
Fixed bugs merge bugs where structures are being accessed in an outdated ways
This commit is contained in:
parent
0a7cf1d5ee
commit
2b257f0012
|
@ -15,8 +15,8 @@ if "__main__" == __name__:
|
|||
# This is here in order to catch EVERYTHING, some functions are being called on
|
||||
# imports, so the log init needs to be first.
|
||||
try:
|
||||
if island_args.server_config:
|
||||
config, server_config_path = setup_config_by_cmd_arg(island_args.server_config)
|
||||
if island_args.server_config_path:
|
||||
config, server_config_path = setup_config_by_cmd_arg(island_args.server_config_path)
|
||||
else:
|
||||
config, server_config_path = setup_default_config()
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ def setup_config_by_cmd_arg(server_config_path) -> Tuple[IslandConfigOptions, st
|
|||
server_config_path = os.path.expandvars(os.path.expanduser(server_config_path))
|
||||
config = server_config_handler.load_server_config_from_file(server_config_path)
|
||||
|
||||
create_data_dir(config["data_dir"], create_parent_dirs=True)
|
||||
create_data_dir(config.data_dir, create_parent_dirs=True)
|
||||
return config, server_config_path
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue