Use active_project instead of current_project for expected behaviour
This commit is contained in:
parent
0fcbaa83bf
commit
17e3927eb1
@ -1,6 +1,6 @@
|
|||||||
module PkgTemplates
|
module PkgTemplates
|
||||||
|
|
||||||
using Base: current_project
|
using Base: active_project
|
||||||
using Base.Filesystem: contractuser
|
using Base.Filesystem: contractuser
|
||||||
|
|
||||||
using Dates: month, today, year
|
using Dates: month, today, year
|
||||||
@ -45,7 +45,7 @@ include("interactive.jl")
|
|||||||
|
|
||||||
# Run some function with a project activated at the given path.
|
# Run some function with a project activated at the given path.
|
||||||
function with_project(f::Function, path::AbstractString)
|
function with_project(f::Function, path::AbstractString)
|
||||||
proj = current_project()
|
proj = active_project()
|
||||||
try
|
try
|
||||||
Pkg.activate(path)
|
Pkg.activate(path)
|
||||||
f()
|
f()
|
||||||
|
Loading…
Reference in New Issue
Block a user