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

      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")

            Assignee:
            tanaka Ryan Tanaka (Inactive)
            Reporter:
            tanaka Ryan Tanaka (Inactive)
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: