diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-04-03 17:07:02 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-04-03 17:07:02 (GMT) |
commit | b62645bd92013b90b14a0835554f690a5acae61c (patch) | |
tree | b008102ca827059d645d91d97e5f3c45b0719fa2 /runtest.py | |
parent | 5eb18d24a338f99ee100c77c3e822f726de80cf7 (diff) | |
download | SCons-b62645bd92013b90b14a0835554f690a5acae61c.zip SCons-b62645bd92013b90b14a0835554f690a5acae61c.tar.gz SCons-b62645bd92013b90b14a0835554f690a5acae61c.tar.bz2 |
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'): |