Skip to content

Commit

Permalink
fix shim path
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Jun 26, 2024
1 parent b5cfd97 commit e4b4edf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/yen_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def test_yen_install_module(yen_path: str) -> None:
@parametrize_python_and_rust_path
def test_yen_run(yen_path: str) -> None:
output = run([yen_path, "run", "morsedecode", "--", "....", "..", "-.-.--"])
# assert output == "HI!\n"
assert output == "HI!\n"

run([yen_path, "install", "astmath", "--module", "astmath"])
output = run([yen_path, "run", "astmath", "3 * 3"])
Expand Down
4 changes: 2 additions & 2 deletions yen-rs/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ pub async fn execute(args: Args) -> miette::Result<()> {
let (_, python_bin_path) = ensure_python(args.python).await?;

let package_name = args.package_name;
install_package(&package_name, python_bin_path, &package_name, false, false).await?;
let (shim_path, _) =
install_package(&package_name, python_bin_path, &package_name, false, false).await?;

let shim_path = PACKAGE_INSTALLS_PATH.join(package_name);
let output = Command::new(shim_path)
.args(args.run_args)
.stdin(Stdio::inherit())
Expand Down

0 comments on commit e4b4edf

Please sign in to comment.