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

Commit

Permalink
add current path for wyvern run (#54)
Browse files Browse the repository at this point in the history
* add current path for wyvern run

* version bump
  • Loading branch information
wintonzheng authored Sep 9, 2023
1 parent cefd422 commit c2fe15d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 <info@wyvern.ai>"]
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

0 comments on commit c2fe15d

Please sign in to comment.