If you are running the tests from cabal, they will always be started in the directory with the .cabal file, and relative paths from there are fine. If that is not the case, could you provide more details about how you are running the test?
Ian R. Sturdy ________________________________ From: [email protected] [[email protected]] on behalf of Graham Berks [[email protected]] Sent: Thursday, May 09, 2013 1:55 AM To: [email protected] Subject: [Haskell-cafe] Accessing resource files in tests Hi, whats the recommended way to access a resource file for a test within cabal. I have a text file containing data that I use in a test and want to be able to access it in a root path independent manner. Thanks
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
