Mercurial > p > roundup > code
comparison roundup/configuration.py @ 7915:82093eb944d6
test - normalize path for MultiFilePathOptions
As part of work for
issue2551334 - get test suite running under windows
use os.path.normpath on absolute path processing to provide similar
processing to os.path.join on the relative codepath.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 28 Apr 2024 09:55:15 -0400 |
| parents | 8b31893f5930 |
| children | 6aa0525187cd |
comparison
equal
deleted
inserted
replaced
| 7914:ecf0368a05da | 7915:82093eb944d6 |
|---|---|
| 588 _val = Option.get(self) | 588 _val = Option.get(self) |
| 589 for elem in _val.split(): | 589 for elem in _val.split(): |
| 590 if elem and not os.path.isabs(elem): | 590 if elem and not os.path.isabs(elem): |
| 591 pathlist.append(os.path.join(self.config["HOME"], elem)) | 591 pathlist.append(os.path.join(self.config["HOME"], elem)) |
| 592 else: | 592 else: |
| 593 pathlist.append(elem) | 593 pathlist.append(os.path.normpath(elem)) |
| 594 if pathlist: | 594 if pathlist: |
| 595 return pathlist | 595 return pathlist |
| 596 else: | 596 else: |
| 597 return None | 597 return None |
| 598 | 598 |
