Skip to content

Commit cfa1c2e

Browse files
committed
lazy import
1 parent 38922c1 commit cfa1c2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import stat
66
import sys
77
from pathlib import Path
8-
from sdgym._benchmark.credentials_utils import sdv_install_cmd
98

109
import tomli
1110
from invoke import task
@@ -223,6 +222,8 @@ def notify_sdgym_benchmark_uploaded(c, folder_name, commit_url=None, modality='s
223222
@task
224223
def install_sdv_enterprise(c, username=None, license_key=None):
225224
"""Install sdv-enterprise using sdv-installer if credentials are available."""
225+
from sdgym._benchmark.credentials_utils import sdv_install_cmd
226+
226227
username = username or os.getenv("SDV_ENTERPRISE_USERNAME")
227228
license_key = license_key or os.getenv("SDV_ENTERPRISE_LICENSE_KEY")
228229
credentials = {

0 commit comments

Comments
 (0)