diff --git a/performance/SConscript b/performance/SConscript index 4fd775ca1..97e740afc 100644 --- a/performance/SConscript +++ b/performance/SConscript @@ -1,7 +1,7 @@ import sys # enable python to find the module -module_path = Dir('#/performance').abspath +module_path = Dir('.').srcnode().abspath sys.path.append(module_path) from build.perftest import compile_test @@ -25,7 +25,7 @@ report_builder = Builder(action = os.path.join('"' + str(my_env.Dir('.')), '$SOU src_suffix = my_env['PROGSUFFIX']) my_env.Append(BUILDERS = {'Report' : report_builder}) -my_env.Append(CPPPATH = [Dir('#/performance'), Dir('#/testing')]) +my_env.Append(CPPPATH = [Dir('.').srcnode(), Dir('#/testing')]) cu_list = [] program_list = [] diff --git a/testing/SConscript b/testing/SConscript index 07d7cc672..eb23da9c6 100644 --- a/testing/SConscript +++ b/testing/SConscript @@ -19,7 +19,7 @@ if my_env.subst('$CXX') == 'cl': my_env.Append(CPPFLAGS = '/bigobj') # #include the current directory -my_env.Append(CPPPATH = Dir('#/testing')) +my_env.Append(CPPPATH = Dir('.').srcnode()) # find all .cus & .cpps sources = []