network-experiment/.devcontainer/postcreate.py

12 lines
447 B
Python
Executable File

#! /usr/bin/python
import argparse
import os
parser = argparse.ArgumentParser()
parser.add_argument('--build_type')
parser.add_argument('--cppstd')
args = parser.parse_args()
print ('Executing post-create steps. Build type ', args.build_type, ' C++ standard ', args.cppstd)
os.system('conan install /workspaces/network-experiment -of /workspaces/network-experiment/build -s compiler.cppstd=' + args.cppstd + ' -s build_type=' + args.build_type)