From ae4f48dcbc8079365c700f122c5515a0ee2fde8e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 30 Oct 2020 14:31:16 +1000 Subject: [PATCH] init: add a command to source the (expected) venv --- init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.py b/init.py index 8df75a2..117821b 100755 --- a/init.py +++ b/init.py @@ -243,7 +243,7 @@ if __name__ == '__main__': prb = os.path.join(profile_dir, conan_build_profile) cmds = [ - "[[ -v VIRTUAL_ENV ]]", + f"{{ [[ -v VIRTUAL_ENV ]] || source {source_dir}/venv/bin/activate; }}", f"conan install {source_dir} -pr:h {prh} -pr:b {prb} --build=missing", f"conan install {source_dir} -pr:h {prh} -pr:b {prb} --build=missing -g deploy -if deps/", f"cmake {source_dir} {' '.join(accumulated)}",