Skip to content

Relative pathnames should be relative to the system #49

Description

@Yehouda

(iter (for (x y) in-csv #P"numbers.csv")

The path above is relative to the current path, so it fails if the current path is not the tests directory.
Instead it should be using asdf:system-relative-pathname like +test-csv-quoted-path+ is defined earlier in the file.
Useful to define:

(defun cl-csv-test-relative (filename)
       (merge-pathnames filename (asdf:system-relative-pathname  :cl-csv "tests/")))

and use it in all places.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions