From e40b58735740ea4c980a5b1a02d583eb14ad5641 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 22 Apr 2014 17:49:03 -0700 Subject: [PATCH] addons: another fix for addon detection on windows --- hledger/Hledger/Cli/Options.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Options.hs b/hledger/Hledger/Cli/Options.hs index 3c496d6c7..2e7525867 100644 --- a/hledger/Hledger/Cli/Options.hs +++ b/hledger/Hledger/Cli/Options.hs @@ -405,7 +405,7 @@ getHledgerAddonCommands = map (drop (length progname + 1)) `fmap` getHledgerExes -- list if there is a problem. getHledgerExesInPath :: IO [String] getHledgerExesInPath = do - pathdirs <- splitOn ":" `fmap` getEnvSafe "PATH" + pathdirs <- regexSplit "[:;]" `fmap` getEnvSafe "PATH" pathfiles <- concat `fmap` mapM getDirectoryContentsSafe pathdirs let hledgernamed = -- nubBy (\a b -> stripAddonExtension a == stripAddonExtension b) $