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)}",