Automatically enable dry sessions when gnuplot can not be executed
This commit is contained in:
parent
5fae45b03c
commit
962f0d1e58
@ -315,9 +315,17 @@ function GPSession(sid::Symbol)
|
|||||||
return nothing
|
return nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
gpversion()
|
|
||||||
session = DrySession(sid)
|
session = DrySession(sid)
|
||||||
|
if !options.dry
|
||||||
|
try
|
||||||
|
gpversion()
|
||||||
|
catch
|
||||||
|
@warn "Cound not start a gnuplot process with command \"$(options.cmd)\". Enabling dry sessions..."
|
||||||
|
options.dry = true
|
||||||
|
sessions[sid] = session
|
||||||
|
return session
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
pin = Base.Pipe()
|
pin = Base.Pipe()
|
||||||
pout = Base.Pipe()
|
pout = Base.Pipe()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user