Commit 2b30f64f authored by Jean-Baptiste Mouret's avatar Jean-Baptiste Mouret
Browse files

better directory structure

parent 4532f87a
......@@ -99,13 +99,13 @@ def build_bo_benchmarks(bld):
bld.program(features='cxx',
source='bayesopt/simple.cpp',
includes='.',
target='benchmark_bayesopt',
target='bayesopt/benchmark_bayesopt',
uselib='BOOST EIGEN TBB NLOPT BAYESOPT LIMBO',
use='')
bld.program(features='cxx',
source='bayesopt/hp_opt.cpp',
includes='.',
target='benchmark_bayesopt_hp_opt',
target='bayesopt/benchmark_bayesopt_hp_opt',
uselib='BOOST EIGEN TBB NLOPT BAYESOPT LIMBO',
use='')
......@@ -14,10 +14,11 @@ def run_bo_benchmarks(ctx):
os.makedirs(res_dir)
except:
Logs.pprint('YELLOW', 'WARNING: directory \'%s\' could not be created!' % res_dir)
for fullname in glob.glob('build/src/benchmarks/*'):
for fullname in glob.glob('build/src/benchmarks/*/*'):
if os.path.isfile(fullname) and os.access(fullname, os.X_OK):
fpath, fname = os.path.split(fullname)
directory = res_dir + "/" + fname
fpath, dir_name = os.path.split(fpath)
directory = res_dir + "/" + dir_name + '/' + fname
try:
os.makedirs(directory)
except:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment