Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1584 5.0 Python Api Improvements
  3. PM-1586

add built-in support for pathlib.Path objects where ever paths are used

    XMLWordPrintable

    Details

      Description

      In the api, wherever paths are commonly used, built-in support for pathlib.Path objects should be added. For example, the following:

      rc = ReplicaCatalog()\
              .add_replica("local", "initial_input_file.txt", str(Path(__file__).parent.resolve() / "initial_input_file.txt"))

      should instead be:

      rc = ReplicaCatalog()\
                .add_replica("local", "initial_input_file.txt", Path(__file__).parent.resolve() / "initial_input_file.txt")

        Attachments

          Activity

            People

            • Assignee:
              tanaka Ryan Tanaka
              Reporter:
              tanaka Ryan Tanaka
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: