Browse Source

Fix path by using ; instead of :

tags/v0.3.1-rc5
haixuanTao 2 years ago
parent
commit
afcfec81f1
5 changed files with 61 additions and 979 deletions
  1. +6
    -956
      Cargo.lock
  2. +18
    -7
      examples/python-dataflow/run.rs
  3. +18
    -7
      examples/python-operator-dataflow/run.rs
  4. +18
    -7
      examples/python-ros2-dataflow/run.rs
  5. +1
    -2
      libraries/core/src/lib.rs

+ 6
- 956
Cargo.lock
File diff suppressed because it is too large
View File


+ 18
- 7
examples/python-dataflow/run.rs View File

@@ -31,13 +31,24 @@ async fn main() -> eyre::Result<()> {
} else {
venv.join("bin")
};
std::env::set_var(
"PATH",
format!(
"{}:{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);

if cfg!(windows) {
std::env::set_var(
"PATH",
format!(
"{};{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);
} else {
std::env::set_var(
"PATH",
format!(
"{}:{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);
}

run(
get_pip_path().context("Could not get pip binary")?,


+ 18
- 7
examples/python-operator-dataflow/run.rs View File

@@ -31,13 +31,24 @@ async fn main() -> eyre::Result<()> {
} else {
venv.join("bin")
};
std::env::set_var(
"PATH",
format!(
"{}:{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);

if cfg!(windows) {
std::env::set_var(
"PATH",
format!(
"{};{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);
} else {
std::env::set_var(
"PATH",
format!(
"{}:{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);
}

run(
get_pip_path().context("Could not get pip binary")?,


+ 18
- 7
examples/python-ros2-dataflow/run.rs View File

@@ -31,13 +31,24 @@ async fn main() -> eyre::Result<()> {
} else {
venv.join("bin")
};
std::env::set_var(
"PATH",
format!(
"{}:{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);

if cfg!(windows) {
std::env::set_var(
"PATH",
format!(
"{};{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);
} else {
std::env::set_var(
"PATH",
format!(
"{}:{orig_path}",
venv_bin.to_str().context("venv path not valid unicode")?
),
);
}

run(
get_pip_path().context("Could not get pip binary")?,


+ 1
- 2
libraries/core/src/lib.rs View File

@@ -1,5 +1,4 @@
use eyre::{bail, eyre, Context, ContextCompat};
use maturin::BuildOptions;
use eyre::{bail, eyre, Context};
use std::{
env::consts::{DLL_PREFIX, DLL_SUFFIX},
ffi::OsStr,


Loading…
Cancel
Save