Skip to content

Commit

Permalink
@include current dir
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Feb 9, 2022
1 parent 7dc300f commit e41010e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Jacinda/Include.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Control.Monad (filterM)
import Data.List.Split (splitWhen)
import Data.Maybe (listToMaybe)
import Paths_jacinda (getDataDir)
import System.Directory (doesFileExist)
import System.Directory (doesFileExist, getCurrentDirectory)
import System.Environment (lookupEnv)
import System.FilePath ((</>))

Expand All @@ -19,7 +19,8 @@ defaultIncludes :: IO ([FilePath] -> [FilePath])
defaultIncludes = do
path <- jacPath
d <- getDataDir
pure $ (d:) . (++path)
dot <- getCurrentDirectory
pure $ (dot:) . (d:) . (++path)

-- | Parsed @JAC_PATH@
jacPath :: IO [FilePath]
Expand Down

0 comments on commit e41010e

Please sign in to comment.