Skip to content

Commit

Permalink
Eliminate some absolute pathnames from SConscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhoberock committed Mar 23, 2012
1 parent 87f6565 commit 979e1df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions performance/SConscript
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 = []
Expand Down
2 changes: 1 addition & 1 deletion testing/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 979e1df

Please sign in to comment.