Skip to content

Commit

Permalink
fix how we find the directory of the Cryptol distribution
Browse files Browse the repository at this point in the history
closes #113
  • Loading branch information
Adam C. Foltzer committed Sep 25, 2014
1 parent 92e7f1b commit e1aa2e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Cryptol/ModuleSystem/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import System.Environment.Executable(splitExecutablePath)
import System.FilePath ((</>), normalise, joinPath, splitPath)
import qualified Data.List as List


-- Module Environment ----------------------------------------------------------

data ModuleEnv = ModuleEnv
Expand All @@ -44,7 +43,7 @@ initialModuleEnv :: IO ModuleEnv
initialModuleEnv = do
dataDir <- getDataDir
(binDir, _) <- splitExecutablePath
let instDir = normalise . joinPath . init . splitPath $ binDir
let instDir = normalise . joinPath . init . init . splitPath $ binDir
return ModuleEnv
{ meLoadedModules = mempty
, meNameSeeds = T.nameSeeds
Expand Down

0 comments on commit e1aa2e7

Please sign in to comment.