Repository navigation
Relative project paths - #644
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #626.
Step 3 project files (
.mjp) now store session paths relative to the project file's folder, so a project keeps working after its folder is moved or copied to another computer. Old projects with absolute paths load as before.resolveProjectPath()toshared/include/HDMapping/SessionPaths.h. UnlikeresolveSessionPath(), it doesn't fall back to a file of the same name next to the project, because sessions are usually all calledsession.mjs. Paths that older versions saved relative to the current folder (sessions given on the command line) still load.toSessionPath()and load withresolveProjectPath()in step 3, its no-GUI version (Python bindings) and the legacy step 3.Users will notice: new projects contain relative paths. Older HDMapping versions can open them only when started from the project folder. I'll update File Formats in the wiki once this is merged.