Expand paths beginning with ~ on unix systems.
This commit is contained in:
parent
f15a721db6
commit
5619feb6c0
@ -70,7 +70,7 @@ function buildanimation(animdir::AbstractString, fn::AbstractString,
|
||||
fps::Integer = 20, loop::Integer = 0,
|
||||
variable_palette::Bool=false,
|
||||
show_msg::Bool=true)
|
||||
fn = abspath(fn)
|
||||
fn = abspath(expanduser(fn))
|
||||
|
||||
if is_animated_gif
|
||||
if variable_palette
|
||||
|
||||
@ -103,7 +103,7 @@ type is inferred from the file extension. All backends support png and pdf
|
||||
file types, some also support svg, ps, eps, html and tex.
|
||||
"""
|
||||
function savefig(plt::Plot, fn::AbstractString)
|
||||
|
||||
fn = abspath(expanduser(fn))
|
||||
# get the extension
|
||||
local ext
|
||||
try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user