diff options
| author | krasimir <krasimir@chalmers.se> | 2009-10-06 10:27:34 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2009-10-06 10:27:34 +0000 |
| commit | cbcdae91484a13780a3d827a1b6ae85f7e3a9ab3 (patch) | |
| tree | c796c0e036905810fae1d2c4005bcea67be68a4c /src/GFI.hs | |
| parent | 332dbf7b9b79f9cb2fa60212cc5529e0c490c1de (diff) | |
hopefully the last revision of the relative paths handling algorithm
Diffstat (limited to 'src/GFI.hs')
| -rw-r--r-- | src/GFI.hs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/GFI.hs b/src/GFI.hs index edf4ada5f..7b98f0ff8 100644 --- a/src/GFI.hs +++ b/src/GFI.hs @@ -130,10 +130,11 @@ loop opts gfenv0 = do putStrLn "wrote graph in file _gfdepgraph.dot" loopNewCPU gfenv "i":args -> do - cdir <- getCurrentDirectory - gfenv' <- case parseOptions cdir args of - Ok (opts',files) -> - importInEnv gfenv (addOptions opts opts') files + gfenv' <- case parseOptions args of + Ok (opts',files) -> do + curr_dir <- getCurrentDirectory + lib_dir <- getLibraryDirectory (addOptions opts opts') + importInEnv gfenv (addOptions opts (fixRelativeLibPaths curr_dir lib_dir opts')) files Bad err -> do putStrLn $ "Command parse error: " ++ err return gfenv |
