diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-04-03 13:07:02 -0400 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-04-03 13:07:02 -0400 |
commit | c2b87b8a6a28ed3daddb8d795d765c63b9059c25 (patch) | |
tree | b008102ca827059d645d91d97e5f3c45b0719fa2 /runtest.py | |
parent | 65255a168807a9014ce04a9bd8cc6e5838f6bd1a (diff) | |
download | scons-c2b87b8a6a28ed3daddb8d795d765c63b9059c25.tar.gz |
change logic to drop ./ or .\ from front of specified test/testpath so logic to match test or src will work properly. This is mainly just useful on windows when autocompleting paths
Diffstat (limited to 'runtest.py')
-rwxr-xr-x | runtest.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -709,7 +709,13 @@ else: for tp in testpaths: # Clean up path so it can match startswith's below - tp = os.path.normpath(tp) + # sys.stderr.write("Changed:%s->"%tp) + # remove leading ./ or .\ + if tp[0] == '.' and tp[1] in (os.sep, os.altsep): + tp = tp[2:] + # tp = os.path.normpath(tp) + # sys.stderr.write('->%s<-'%tp) + # sys.stderr.write("to:%s\n"%tp) for path in glob.glob(tp): if os.path.isdir(path): if path.startswith('src'): |