Absolute path of the current project in editor?

Godot Version

4.4.1

Question

hi,
probably a stupid question, but I cannot find the answer…
In the editor, how can I find the absolute path of the current project on the hard drive ?
(I often open several godot instances with variation of the same project, so each godot window has the same title…) : the only way to discriminate them would be to have their full path…
Maybe a way to open the current project directory somewhere ?..

Does this do what you are looking for?

ProjectSettings.globalize_path("res://")

Edit: Wow, I completely misunderstood you’re question… I think you should probably just rename the variations so you can tell by the name what they are; that seems like generally good practice

The project list shows the project name then it’s full path underneath, including a folder icon to open the path in your file manager. If your project must be opened during this operation you can right click one of the files in the FIleSystem dock and select “Show in File Manager”

I just version the projects and add the version number manually to the project name.

thanks to all of you. I don’t want to rename the project variations ; just want sometimes to unzip different backups and compare them. So I need to detect the âth from the editor once the project is opened. @gertkeno solution is what I need : “right click one of the files in the FIleSystem dock and select “Show in File Manager””. It also works on the root “res://”.

BTW, do you know if there is a tool to compare the code source of two similar projects (2 slightly different backups for example).

git is a great tool for creating versioned backups of your project and source code. It includes showing text-based differences between edits. I’d highly recommend learning to use it for your backup needs.

I agree with @gertkeno on using git. In fact the reason I rename the version is because then I check them in to git when I update the version.

If you are comparing versions because you have multiple people working on it then you DEFINITELY want to be using git. That’s what it is meant for. It will help you merge changes in from multiple people, and if you do need to switch between versions, it stores them all, provides a list of differences, and ways to combine them.

I’m currently installing Git to learn how to use it.
But what I precisely needed to do was to open two versions of my game in two instances of godot editor to compare their behavior.
Infact, sometimes, I bump into a bug that I do not understand, and I don’t know when this bug appeared during the coding progress. So I go back in time opening several backups (for the moment I was using local ZIP files), and I make comparison in real time on both versions, using debugger to track a difference.
For what I understand, Git does not allow that : I can go back in time, removing last changes/commits, but not create two versions of my game source on my hard drive, or can I ?

https://winmerge.org/ you can diff multiple files, even folder to folder iirc.
HTH, cheers !

Edit : do keep learning Git :smiling_face_with_sunglasses:

Going old school! Nice!

You absolutely can. What you would do is check it out into two folder. Then you can just switch one version to the older version, and run them both.

There is also git diff, a git command to do conflict resolution, etc.

I installed Git Desktop for windows, and add a repo for my game, with a connection to github. Seems to work.
To test what you propose, I made some changes and 1 new commit that I pushed. On the previous commit, i choosed “checkout” ; it says that it creates a detached head, but on my hard drive, there is still only one directory. How can I save this “branch” in another separate directory, in order to run both versions in parallel ?

I use git on the command line with Git Bash, so I can’t tell you how exactly. But basically you want to clone it to another folder. I know there are others on here who use Git Windows Desktop or something like it. Your best bet to get their attention is to post a new thread asking for help with it, because I can’t remember who it is.