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

IrodsPath.parent should be calculated from absolute path #173

Closed
chStaiger opened this issue May 28, 2024 · 1 comment · Fixed by #175
Closed

IrodsPath.parent should be calculated from absolute path #173

chStaiger opened this issue May 28, 2024 · 1 comment · Fixed by #175
Assignees
Milestone

Comments

@chStaiger
Copy link
Collaborator

My irods_home is "/nluu12p/home/research-test-christine" and I can instantiate it in three ways.

In [5]: print(IrodsPath(session).parent)
/nluu12p/home/research-test-christine

In [6]: print(IrodsPath(session, "~").parent)
/nluu12p/home/research-test-christine

In [7]: print(IrodsPath(session, session.home).parent)
/nluu12p/home

But only the last one will give me the correct parent.

@qubixes qubixes added this to the v1.0 milestone May 28, 2024
@qubixes qubixes self-assigned this May 28, 2024
@qubixes
Copy link
Collaborator

qubixes commented May 28, 2024

It's the old pathlib doing it's things again. I guess we're going to move further and further away from copying its behavior..

Will fix after #169 is merged.

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

Successfully merging a pull request may close this issue.

2 participants