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

Problem using Symlinks for projects #125

Open
0Hughman0 opened this issue May 31, 2024 · 1 comment
Open

Problem using Symlinks for projects #125

0Hughman0 opened this issue May 31, 2024 · 1 comment

Comments

@0Hughman0
Copy link
Owner

0Hughman0 commented May 31, 2024

This line

Means if the project_folder is set to a symlink, this gets undone upon initialisation, which seems to cause problems generating relative paths because drives are different

Might be better to change to path.absolute(), although not sure if there was a good reason to use resolve() in the first place.

dirty workaround is:

# project.py
from pathlib import Path

project = Project(HIERARCHY, project_folder='P:/PhD')
project.project_folder = Path('P:/PhD')  # explicitly set again, before launch
@0Hughman0
Copy link
Owner Author

0Hughman0 commented Jun 2, 2024

Ah so I think this exists because resolve() is the only method that gets ride of relative paths e.g. ../above.

Is there a reason we're concerned about this? Are there tests that fail for this?

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

1 participant