A very simple convenience function so that test scripts can build platform independent paths out of a list of elements, without having to import the os module. pathElts: Any number of strings which should be concatenated together in a platform independent manner.
(*pathElts)
| 296 | # Concatenate any number of strings into a single path string. |
| 297 | # ============================================================================= |
| 298 | def concat_paths(*pathElts): |
| 299 | """ |
| 300 | A very simple convenience function so that test scripts can build platform |
| 301 | independent paths out of a list of elements, without having to import the |
| 302 | os module. |
| 303 | |
| 304 | pathElts: Any number of strings which should be concatenated together |
| 305 | in a platform independent manner. |
| 306 | """ |
| 307 | |
| 308 | return os.path.join(*pathElts) |
| 309 | |
| 310 | |
| 311 | # ============================================================================= |