Relative paths in Delphi and ITE projects in particular

I have a bunch of projects with some common libraries in the SVN repository. There are several branches for production versions in the repository.

For this reason (by checking several versions on the same computer and minimizing the swap time), I tried to configure all projects with relative paths in the repository as much as possible. (.... \ libraries \ common for forms in .dpr and libraries).

It is not ideal 100% (it is sometimes confused if you open a file and open another directory, but this can be easily solved by opening the file in the root directory (dir with .dpr)).

But now I started using ITE, I see that the hierarchy created by the resource wizard contains absolute paths. (Drive / full / way / to / exit).

Does sb have a good solution to handle this? Specially bit ITE. Is there a macro in the search path that designates the working directory?

Ps I used visual sourcesafe, so I know about ordinary substations. I prefer a solution without any action when changing project trees. (changing projects to use relative paths is one-time and is checked, so it’s not so painful)

Ps2 situation in projects (not ITE, but normal projects) can be neutralized by always closing projects before opening new ones.

+3
source share
2 answers

. rootdirectory ( , "edit rootdir" ). rootdir , dirs , IDE .

( , dir), . (, , .dproj

: , .dfn. , IDE , , IDE ( .dfn rootdir)

+1

QC, , - , Delphi . ITE .

0

Source: https://habr.com/ru/post/1734239/


All Articles