Skip to content

Commit

Permalink
fixed python tests to work on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
floWetzels committed Mar 5, 2024
1 parent 4262833 commit 89aa3c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/BasicTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ module Helper =

createProcess npmPath

let python = createProcess @".\.venv\Scripts\python.exe"
let python =
if System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows) then
Fake.Core.Trace.log "Detected Windows System."
createProcess @".\.venv\Scripts\python.exe"
else
Fake.Core.Trace.log "Detected Unix System."
createProcess @"./.venv/bin/python"

let run proc arg dir =
proc arg dir
Expand Down

0 comments on commit 89aa3c2

Please sign in to comment.