diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2009-06-08 08:06:25 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2009-06-08 08:06:25 +0200 |
commit | 4d4b3b1c04d41868ebb58bd9ccba7b303007e900 (patch) | |
tree | 909ed0aad0b145733521f4ac2bfb938dd4b43785 /nim/nimconf.pas | |
parent | ce88dc3e67436939b03f97e624c11ca6058fedce (diff) | |
download | Nim-4d4b3b1c04d41868ebb58bd9ccba7b303007e900.tar.gz |
version0.7.10
Diffstat (limited to 'nim/nimconf.pas')
-rw-r--r-- | nim/nimconf.pas | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nim/nimconf.pas b/nim/nimconf.pas index 8f908bf62..842446ae9 100644 --- a/nim/nimconf.pas +++ b/nim/nimconf.pas @@ -335,12 +335,19 @@ end; procedure LoadConfig(const project: string); var - conffile: string; + conffile, prefix: string; begin // set default value (can be overwritten): - if libpath = '' then + if libpath = '' then begin // choose default libpath: - libpath := joinPath(getPrefixDir(), 'lib'); + prefix := getPrefixDir(); + if (prefix = '/usr') then + libpath := '/usr/lib/nimrod' + else if (prefix = '/usr/local') then + libpath := '/usr/local/lib/nimrod' + else + libpath := joinPath(prefix, 'lib') + end; // read default config file: LoadSpecialConfig('nimrod.cfg'); // read project config file: |