summaryrefslogtreecommitdiff
path: root/src/GF.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2008-02-21 15:56:09 +0000
committerkrasimir <krasimir@chalmers.se>2008-02-21 15:56:09 +0000
commit671b6b4dff42efeef8c1e1471576f06fdcff8f68 (patch)
tree8f7e89169d92acbb4ab448745be45e747e66253a /src/GF.hs
parentc764a758e1a5e0eab346a2c3c88b7e8a9c64e248 (diff)
For Windows get the default GF_LIB_PATH from the executable path
Diffstat (limited to 'src/GF.hs')
-rw-r--r--src/GF.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/GF.hs b/src/GF.hs
index 30c9ab5a2..006d5f0df 100644
--- a/src/GF.hs
+++ b/src/GF.hs
@@ -119,15 +119,13 @@ helpMsg = unlines [
]
welcomeMsgLib = do
- lib <- catch
- (getEnv "GF_LIB_PATH" >>= return . ("GF_LIB_PATH is set to" +++))
- (const (return $ "GF_LIB_PATH is set to the default, " ++ libdir))
+ lib <- getLibraryPath
return $ welcomeMsg lib
welcomeMsg lib =
"Welcome to " ++ authorMsg ++++
"If \228 and \246 (umlaut letters) look strange, see 'h -coding'." ++
- "\n" ++ lib ++
+ "\nGF_LIB_PATH is set to " ++ lib ++
"\n\nType 'h' for help, and 'h [Command] for more detailed help.\n"
authorMsg = unlines [