Skip to content

Commit 6c873f1

Browse files
committed
debug
1 parent 8f25b8a commit 6c873f1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/env.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ pub fn run(config: Config, subcommand: Subcommand) -> ExitCode {
179179
debug!("Determined env path: {:?}", env_path);
180180
let micromamba_prefix_bin = env_path.join("bin");
181181
let prefix_prefix_bin = |existing_path: &str| {
182+
let separator = if cfg!(windows) { ";" } else { ":" };
182183
let bin_path = micromamba_prefix_bin.to_string_lossy();
183-
format!("{}:{}", bin_path, existing_path)
184+
format!("{}{}{}", bin_path, separator, existing_path)
184185
};
185186
println!("{}", shell.map_env_var("PATH", prefix_prefix_bin));
186187

tests/env.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ fn csm_env_activate_bash() -> Result<(), Error> {
169169
.arg("-c")
170170
.arg(
171171
"eval \"$(csm init bash --code)\" &&\
172+
echo $PATH &&\
172173
csm env activate -n csm_env_activate_bash &&\
174+
echo $PATH &&\
175+
echo '**********************************' &&\
176+
ls /c/Users/runneradmin/AppData/Local/Temp/csm*/AppData/Roaming/mamba/envs/csm_env_activate_bash/bin
173177
robot --version",
174178
)
175179
.assert()

0 commit comments

Comments
 (0)