Merge pull request #2122 from JackDevine/expand_path
Expand paths beginning with ~ on unix systems.
This commit is contained in:
commit
79777adc07
@ -70,7 +70,7 @@ function buildanimation(animdir::AbstractString, fn::AbstractString,
|
|||||||
fps::Integer = 20, loop::Integer = 0,
|
fps::Integer = 20, loop::Integer = 0,
|
||||||
variable_palette::Bool=false,
|
variable_palette::Bool=false,
|
||||||
show_msg::Bool=true)
|
show_msg::Bool=true)
|
||||||
fn = abspath(fn)
|
fn = abspath(expanduser(fn))
|
||||||
|
|
||||||
if is_animated_gif
|
if is_animated_gif
|
||||||
if variable_palette
|
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.
|
file types, some also support svg, ps, eps, html and tex.
|
||||||
"""
|
"""
|
||||||
function savefig(plt::Plot, fn::AbstractString)
|
function savefig(plt::Plot, fn::AbstractString)
|
||||||
|
fn = abspath(expanduser(fn))
|
||||||
# get the extension
|
# get the extension
|
||||||
local ext
|
local ext
|
||||||
try
|
try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user