From 9413e4f19898d7622a62e2ba583a60671db6b95c Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Wed, 20 Dec 2023 20:42:56 +0100 Subject: [PATCH] Rename `../.env` to `.env` as it seems to create path issues --- examples/python-dataflow/run.rs | 2 +- examples/python-operator-dataflow/run.rs | 2 +- examples/python-ros2-dataflow/run.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/python-dataflow/run.rs b/examples/python-dataflow/run.rs index 49721eb4..da87b65f 100644 --- a/examples/python-dataflow/run.rs +++ b/examples/python-dataflow/run.rs @@ -23,7 +23,7 @@ async fn main() -> eyre::Result<()> { .context("Could not convert python path to string")?, "-m", "venv", - "../.env", + ".env", ], None, ) diff --git a/examples/python-operator-dataflow/run.rs b/examples/python-operator-dataflow/run.rs index 49721eb4..da87b65f 100644 --- a/examples/python-operator-dataflow/run.rs +++ b/examples/python-operator-dataflow/run.rs @@ -23,7 +23,7 @@ async fn main() -> eyre::Result<()> { .context("Could not convert python path to string")?, "-m", "venv", - "../.env", + ".env", ], None, ) diff --git a/examples/python-ros2-dataflow/run.rs b/examples/python-ros2-dataflow/run.rs index a4ce5e91..e01dcdd6 100644 --- a/examples/python-ros2-dataflow/run.rs +++ b/examples/python-ros2-dataflow/run.rs @@ -1,3 +1,4 @@ +use dora_core::get_python_path; use eyre::{ContextCompat, WrapErr}; use std::path::Path; use tracing_subscriber::{ @@ -22,7 +23,7 @@ async fn main() -> eyre::Result<()> { .context("Could not convert python path to string")?, "-m", "venv", - "../.env", + ".env", ], None, )