network-experiment/.devcontainer/postcreate.py

12 lines
428 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 ' + arg.cppstd)
os.system('conan install /workspaces/network-experiment -of /workspaces/build -s compiler.cppstd= ' + arg.cppstd + ' -s build_type=' + args.build_type)