Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update meta-configuration handling #728

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions neon_core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,20 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from threading import Thread

import click

from os import environ
from os.path import join, dirname
from threading import Thread
from click_default_group import DefaultGroup
from neon_utils.packaging_utils import get_neon_core_version

_DEFAULT_CONFIG_FILE = join(dirname(__file__), 'configuration', 'neon.yaml')
environ.setdefault("OVOS_CONFIG_BASE_FOLDER", "neon")
environ.setdefault("OVOS_CONFIG_FILENAME", "neon.yaml")
environ.setdefault("OVOS_DEFAULT_CONFIG", _DEFAULT_CONFIG_FILE)


@click.group("neon", cls=DefaultGroup,
no_args_is_help=True, invoke_without_command=True,
Expand Down Expand Up @@ -92,9 +99,6 @@ def update_default_resources():

@neon_core_cli.command(help="Start Neon Skills module")
def run_skills():
from neon_utils.configuration_utils import init_config_dir
init_config_dir()

from neon_core.util.skill_utils import update_default_resources
update_default_resources()

Expand Down
Loading