mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
bugfix in extendPathEnv
This commit is contained in:
@@ -78,7 +78,7 @@ extendPathEnv :: Options -> FilePath -> IO [FilePath]
|
||||
extendPathEnv opts fdir = do
|
||||
b <- getLibraryPath opts -- e.g. GF_LIB_PATH
|
||||
ss <- getGrammarPath opts -- e.g. GF_GRAMMAR_PATH
|
||||
ps <- liftM (nub . concat) $ mapM allSubdirs $ ss ++ [b </> s | s <- ss] ++ [fdir </> s | s <- ss]
|
||||
ps <- liftM (nub . concat) $ mapM allSubdirs $ [fdir </> s | s <- ss] ++ [b </> s | s <- ss]
|
||||
mapM canonicalizePath ps
|
||||
where
|
||||
allSubdirs :: FilePath -> IO [FilePath]
|
||||
|
||||
Reference in New Issue
Block a user