From 345fbf8a78733d96ab751e47765a738181e1aa3c Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Fri, 18 Aug 2017 23:00:06 -0500 Subject: [PATCH] Make directory paths safer --- src/PkgTemplates.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PkgTemplates.jl b/src/PkgTemplates.jl index 0bb515f..9415582 100644 --- a/src/PkgTemplates.jl +++ b/src/PkgTemplates.jl @@ -21,8 +21,8 @@ include(joinpath("plugins", "travisci.jl")) include(joinpath("plugins", "githubpages.jl")) -const DEFAULTS_DIR = Pkg.dir("PkgTemplates", "defaults") -const LICENSE_DIR = Pkg.dir("PkgTemplates", "licenses") +const DEFAULTS_DIR = normpath(joinpath(@__DIR__, "..", "defaults")) +const LICENSE_DIR = normpath(joinpath(@__DIR__, "..", "licenses")) const LICENSES = Dict( "MIT" => "MIT \"Expat\" License", "BSD" => "Simplified \"2-clause\" BSD License",