From 332dbf7b9b79f9cb2fa60212cc5529e0c490c1de Mon Sep 17 00:00:00 2001 From: krasimir Date: Mon, 5 Oct 2009 14:58:13 +0000 Subject: another attempt to get the paths handling right --- src/GF/Compile/ReadFiles.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GF/Compile/ReadFiles.hs') diff --git a/src/GF/Compile/ReadFiles.hs b/src/GF/Compile/ReadFiles.hs index b96d3127b..da06f2789 100644 --- a/src/GF/Compile/ReadFiles.hs +++ b/src/GF/Compile/ReadFiles.hs @@ -205,7 +205,7 @@ getOptionsFromFile file = do (\_ -> return (Bad $ "File " ++ file ++ " does not exist")) let ls = filter (BS.isPrefixOf (BS.pack "--#")) $ BS.lines s fs = map (BS.unpack . BS.unwords . BS.words . BS.drop 3) ls - ioeErr $ parseModuleOptions fs + ioeErr $ parseModuleOptions (dropFileName file) fs getFilePath :: [FilePath] -> String -> IO (Maybe FilePath) getFilePath paths file = get paths -- cgit v1.2.3