Skip to content

Commit

Permalink
Fix JuliaGraphs#175 to enable plotting to html
Browse files Browse the repository at this point in the history
Checking for System OS was outdated
  • Loading branch information
hdavid16 authored Jul 21, 2022
1 parent febb53b commit 9bffdd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ end

# take from [Gadfly.jl](https://github.com/dcjones/Gadfly.jl)
function open_file(filename)
if Sys.KERNEL == :Darwin
if Sys.isapple(Sys.KERNEL) #apple
run(`open $(filename)`)
elseif Sys.KERNEL == :Linux || Sys.KERNEL == :FreeBSD
elseif Sys.islinux(Sys.KERNEL) || Sys.isbsd(Sys.KERNEL) #linux
run(`xdg-open $(filename)`)
elseif Sys.KERNEL == :Windows
elseif Sys.iswindows(Sys.KERNEL) #windows
run(`$(ENV["COMSPEC"]) /c start $(filename)`)
else
@warn("Showing plots is not supported on OS $(string(Sys.KERNEL))")
Expand Down

0 comments on commit 9bffdd9

Please sign in to comment.