SNSystems / dexter

DExTer - Debug Experience Tester
MIT License
33 stars 6 forks source link

Cope with variable depth directory trees #29

Closed jmorse closed 5 years ago

jmorse commented 5 years ago

os.path.split will only split the basename of a path from the dirname, it won't split the entire path. Two levels of test directories will thus make path-separators turn up in file names.

Get around this with a generator that splits the path into components, that are then joined with '_'. Use this file basename for writing the dextir file too, as that risks having path separators in its name too.

OCHyams commented 5 years ago

LGTM