Use active_project instead of current_project for expected behaviour

This commit is contained in:
Chris de Graaf 2019-09-26 14:49:18 +07:00
parent 0fcbaa83bf
commit 17e3927eb1
No known key found for this signature in database
GPG Key ID: 150FFDD9B0073C7B

View File

@ -1,6 +1,6 @@
module PkgTemplates
using Base: current_project
using Base: active_project
using Base.Filesystem: contractuser
using Dates: month, today, year
@ -45,7 +45,7 @@ include("interactive.jl")
# Run some function with a project activated at the given path.
function with_project(f::Function, path::AbstractString)
proj = current_project()
proj = active_project()
try
Pkg.activate(path)
f()