Skip to content

Commit

Permalink
Update meta-configuration handling (#728)
Browse files Browse the repository at this point in the history
# Description
Update CLI module to set default envvars
Remove reference to deprecated `init_config_dir`

# Issues
<!-- If this is related to or closes an issue/other PR, please note them
here -->

# Other Notes
<!-- Note any breaking changes, WIP changes, requests for input, etc.
here -->
  • Loading branch information
NeonDaniel authored Feb 7, 2025
1 parent 9508668 commit a90515a
Showing 1 changed file with 8 additions and 4 deletions.
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

0 comments on commit a90515a

Please sign in to comment.