Relative IncludePath

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Relative IncludePath

Post 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.
Dräc
magicjo
User
User
Posts: 61
Joined: Sun May 07, 2006 10:43 am
Location: Italy

Post by magicjo »

+1 :wink:
PB Registered User, Egrid Registered User
Win7 x64 Ultimate, 4,00 Gb Mem, Ati Radeon HD4600 Series, Realtek High Definition Audio Integrated
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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.
Post Reply