Skip to content

Change data_path from an attribute to a method #23

@hafen

Description

@hafen

I think a nice practical function for getting local paths for data resources would be to change data_path from an attribute to a method.

The method would work as follows:

  • If you call p.data_path(), it returns /full/path/to/project/data
  • If you call it with an argument of a name or URI, it will return the path to that file. For example, p.data_path("syn:syn18670920") would return full/path/to/project/data/file_associated_with_syn18670920.ext

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions