Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

add current path for wyvern run #54

Merged
merged 2 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wyvern-ai"
version = "0.0.15"
version = "0.0.16"
description = ""
authors = ["Wyvern AI <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 2 additions & 0 deletions wyvern/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import platform
import shutil
import subprocess
import sys
import zipfile
from pathlib import Path
from typing import Optional
Expand Down Expand Up @@ -175,6 +176,7 @@ def run(
typer.echo("Running your ML application")
# import the app from path
try:
sys.path.append(".")
module_path, app_name = path.split(":")
module = importlib.import_module(module_path)
except ImportError:
Expand Down