> I guess you are searching for {$unitpath Documents} 

Yes, it is a excellent solution.

>  but then some units might not rebuild automatically, 

It is not a problem, all that units are part of ../src and users should not
touch it when compiling demos.

Many thanks Mathias for this pearl.

PS: I wish that one day fpc will publish the complete list of all  the
{$something  ...} that  fpc can deal.

Fre;D





-----
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626p5727654.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to