For Windows get the default GF_LIB_PATH from the executable path

This commit is contained in:
krasimir
2008-02-21 15:56:09 +00:00
parent 7de91c67cc
commit 344d95293a
3 changed files with 44 additions and 6 deletions

View File

@@ -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 [