This commit is contained in:
aarne
2004-08-13 20:46:54 +00:00
parent 69aa3248d2
commit 1142d18a08
6 changed files with 11 additions and 8 deletions

View File

@@ -84,11 +84,12 @@ compileModule opts st0 file |
compileModule opts1 st0 file = do
opts0 <- ioeIO $ getOptionsFromFile file
let useFileOpt = maybe False (const True) $ getOptVal opts0 pathList
let useLineOpt = maybe False (const True) $ getOptVal opts1 pathList
let opts = addOptions opts1 opts0
let fpath = justInitPath file
let ps0 = pathListOpts opts fpath
let ps1 = if useFileOpt
let ps1 = if (useFileOpt && not useLineOpt)
then (map (prefixPathName fpath) ps0)
else ps0
ps <- ioeIO $ extendPathEnv gfGrammarPathVar ps1