Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

How to get projectdir in package?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis

Hi all,

I'm developing a design-time package and want to store some files in the default-project dir. How to do so?

And what I actually want, is that a user can set the used path, relative to the current project path. Like you can place generated executables in 'lib'. Or even use the standard macro's. But to do so I have to use the TransferMacros unit (GlobalMacroList) but that's in the ide-directory and can't be used from within a package.
Any ideas how to solve this?

Joost

Reply by email

Mattias Gaertner
to Joost van der Sluis
Show quoted text 10 lines
Hi all, I'm developing a design-time package and want to store some files in the default-project dir. How to do so? And what I actually want, is that a user can set the used path, relative to the current project path. Like you can place generated executables in 'lib'. Or even use the standard macro's. But to do so I have to use the TransferMacros unit (GlobalMacroList) but that's in the ide-directory and can't be used from within a package. Any ideas how to solve this?

see package IDEIntf, unit MacroIntf

Mattias

Reply by email

Joost van der Sluis
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
On Thu, 31 Dec 2009 17:12:50 +0100 Joost van der Sluis wrote: > And what I actually want, is that a user can set the used path, relative > to the current project path. Like you can place generated executables in > 'lib'. Or even use the standard macro's. But to do so I have to use the > TransferMacros unit (GlobalMacroList) but that's in the ide-directory > and can't be used from within a package. > Any ideas how to solve this? see package IDEIntf, unit MacroIntf

Thanks again,

Joost

Reply by email