mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 17:52:51 -06:00
bugfix in extendPathEnv
This commit is contained in:
@@ -78,7 +78,7 @@ extendPathEnv :: Options -> FilePath -> IO [FilePath]
|
|||||||
extendPathEnv opts fdir = do
|
extendPathEnv opts fdir = do
|
||||||
b <- getLibraryPath opts -- e.g. GF_LIB_PATH
|
b <- getLibraryPath opts -- e.g. GF_LIB_PATH
|
||||||
ss <- getGrammarPath opts -- e.g. GF_GRAMMAR_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
|
mapM canonicalizePath ps
|
||||||
where
|
where
|
||||||
allSubdirs :: FilePath -> IO [FilePath]
|
allSubdirs :: FilePath -> IO [FilePath]
|
||||||
|
|||||||
Reference in New Issue
Block a user