Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative pathnames should be relative to the system #49

Open
Yehouda opened this issue Dec 11, 2024 · 1 comment
Open

Relative pathnames should be relative to the system #49

Yehouda opened this issue Dec 11, 2024 · 1 comment

Comments

@Yehouda
Copy link

Yehouda commented Dec 11, 2024

(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.

@bobbysmith007
Copy link
Member

I am happy to accept tested patches, but I have not had a working lisp setup in a number of years, so I will not be able to make this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants