Skip to content

Commit

Permalink
Merge pull request CxxTest#99 from ptomulik/fix-none-bug
Browse files Browse the repository at this point in the history
fixed bug with "None" appearing in $CXXTEST_CPPPATH
  • Loading branch information
whart222 committed Feb 23, 2014
2 parents 874ca1c + 78abf32 commit 322da36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_tools/SCons/cxxtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,11 @@ def findCxxTestHeaders(env):
alt_path = os_cxxtestgen[:-cxxtestgen_pathlen]

searchpaths = [default_path, alt_path]
foundpaths = []
for p in searchpaths:
if os.path.exists(os.path.join(p, 'cxxtest', searchfile)):
return p
foundpaths.append(p)
return foundpaths

def generate(env, **kwargs):
"""
Expand Down Expand Up @@ -286,7 +288,7 @@ def generate(env, **kwargs):
env["CXXTEST"] = findCxxTestGen(env)

# find and add the CxxTest headers to the path.
env.AppendUnique( CXXTEST_CPPPATH = [findCxxTestHeaders(env)] )
env.AppendUnique( CXXTEST_CPPPATH = findCxxTestHeaders(env) )

cxxtest = env['CXXTEST']
if cxxtest:
Expand Down

0 comments on commit 322da36

Please sign in to comment.