Skip to content

Commit

Permalink
Merge pull request #2 from MikeInnes/deps
Browse files Browse the repository at this point in the history
0.5 Update
  • Loading branch information
Matthew Lake authored Aug 5, 2016
2 parents 04418dc + 7221836 commit f01fa27
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Juliet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,16 @@ function setup_function_file(question::Types.FunctionQuestion)
end
end

@windows_only Util.run(`explorer.exe $file`; whitelist=[1])
@linux_only run(`xdg-open $file`)
@osx_only try
run(`open $file`)
catch
run(`open -a TextEdit $file`)
@static if is_windows()
Util.run(`explorer.exe $file`; whitelist=[1])
elseif is_linux()
run(`xdg-open $file`)
elseif is_apple()
try
run(`open $file`)
catch
run(`open -a TextEdit $file`)
end
end
end

Expand Down

0 comments on commit f01fa27

Please sign in to comment.