Jump to content
Sign in to follow this  
Bill Meyer

Paths in DPR and DPROJ

Recommended Posts

Posted (edited)

Given a project located at, for example:

D:\MyProj\ShinyNewTool.dproj

And a collection of shared modules in:

D:\SharedCode\

When I add a module from the SharedCode folder to my project, the path given in DPR and DPROJ is:

D:\SharedCode\FileUtils.pas

instead of

D:\..\SharedCode\FileUtils.pas

 

In Tokyo or later, is there a way to prevent the path from being absolute? The only thing I have found is to relocate thus:

D:\Projects\MyProj\ShinyNewTool.dproj

D:\Projects\SharedCode\

Then the paths will be relative, as long as no module is on a different drive.

 

This becomes an issue because on our build machine, the folder paths must be relative, as they will not be root based.

Edited by Bill Meyer

Share this post


Link to post

The relative path should be ..\SharedCode\FileUtils.pas. 

 

I opened a dpr and dproj for an application and there the paths are relative.

Share this post


Link to post
21 minutes ago, Lajos Juhász said:

The relative path should be ..\SharedCode\FileUtils.pas. 

 

I opened a dpr and dproj for an application and there the paths are relative.

Thanks, had my mind stuck in the actual app environment, where there was another folder level before reaching the source.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×