Skip to content

Commit

Permalink
fix: activate script path on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Oct 19, 2024
1 parent fc79d79 commit cae7634
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tools/task_runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@ impl TaskRunner {
fn detect_venv(&self, work_dir: &Path) -> Result<Option<PathBuf>, Error> {
let venv_dir = work_dir.join("venv");
if venv_dir.is_dir() {
let venv_bin_dir = venv_dir.join("bin");
let activate_script = if cfg!(target_os = "windows") {
venv_dir.join("Scripts").join("Activate.ps1")
venv_bin_dir.join("Activate.ps1")
} else {
venv_dir.join("bin").join("activate")
venv_bin_dir.join("activate")
};

if activate_script.is_file() {
Expand Down

0 comments on commit cae7634

Please sign in to comment.