summaryrefslogtreecommitdiff
path: root/src/GF.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GF.hs')
-rw-r--r--src/GF.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GF.hs b/src/GF.hs
index 451cff9f9..32a95ca1f 100644
--- a/src/GF.hs
+++ b/src/GF.hs
@@ -26,9 +26,10 @@ main = do
setConsoleOutputCP codepage
#endif
args <- getArgs
- cdir <- getCurrentDirectory
- case parseOptions cdir args of
- Ok (opts,files) -> mainOpts opts files
+ case parseOptions args of
+ Ok (opts,files) -> do curr_dir <- getCurrentDirectory
+ lib_dir <- getLibraryDirectory opts
+ mainOpts (fixRelativeLibPaths curr_dir lib_dir opts) files
Bad err -> do hPutStrLn stderr err
hPutStrLn stderr "You may want to try --help."
exitFailure