Page 1 of 1

Relative IncludePath

Posted: Sun Oct 07, 2007 9:44 am
by Dräc
My wish is that IncludePath (or a new command) would be interpreted relative to the owner file.
Without that, all Path need to be absolute and reassigned each time.

Here an example of my current problem:

Code: Select all

File1:
IncludePath <Path1>
IncludeFile "File2.pbi"
IncludeFile "File3.pbi"

File2:
IncludePath <Path2>
IncludeFile "File4.pbi"
In this example, File3.pbi will not be found because by including File2.pbi <Path1> was removed by <Path2>.

It is easy to declare all immediate needed files for a given file, it is difficult to check and to give a sense to all dependencies.

Posted: Sun Oct 07, 2007 10:54 am
by magicjo
+1 :wink:

Posted: Sun Oct 07, 2007 12:09 pm
by mskuma
I agree - this is similar to the vein to a few posts below "nested includes from subdirectory ... ?". I think it's time PB had a good resolution to this kind of issue.