forked from GiovineItalia/Gadfly.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Gadfly.open_file instead of run(open) in the test suite (fix Giov…
- Loading branch information
1 parent
0d9e54b
commit badd63d
Showing
3 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function open_file(filename) | ||
if is_apple() | ||
run(`open $(filename)`) | ||
elseif is_linux() || is_bsd() | ||
run(`xdg-open $(filename)`) | ||
elseif is_windows() | ||
run(`$(ENV["COMSPEC"]) /c start $(filename)`) | ||
else | ||
warn("Showing plots is not supported on OS $(string(Compat.KERNEL))") | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters