#!/usr/bin/env python3 | |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | |
from x3d_model.helpers.cfg import get_cfg | |
def load_config(path_to_config=None): | |
# Setup cfg. | |
cfg = get_cfg() | |
# Load config from cfg. | |
if path_to_config is not None: | |
cfg.merge_from_file(path_to_config) | |
return cfg | |