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
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng committed Sep 9, 2023
1 parent cefd422 commit 4d8bd28
Showing 1 changed file with 2 additions and 0 deletions.
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 4d8bd28

Please sign in to comment.