Skip to content

Commit fed0a4e

Browse files
Update function name + introduce AQUA_EXTENSTION_PATH env
1 parent a729eed commit fed0a4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ads/aqua/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@ def _validate_value(flag, value):
9696
)
9797

9898
@staticmethod
99-
def install_extension(path = "/ads/extension/"):
99+
def install():
100100
import subprocess
101-
from pathlib import Path
102101

103-
wheel_file_path = Path(path) / f"adsjupyterlab_aqua_extension*.whl"
102+
wheel_file_path = os.environ.get("AQUA_EXTENSTION_PATH", "/ads/extension/adsjupyterlab_aqua_extension*.whl")
104103
status = subprocess.run(f"pip install {wheel_file_path}",shell=True)
105104
return status.check_returncode

0 commit comments

Comments
 (0)