X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=driver%2Fghci%2Fghci.c;fp=driver%2Fghci%2Fghci.c;h=06165b54e76c9167888c93182090c333f4a49b78;hp=03a8f98140dad156536c95c1d7ff028536041071;hb=d86f00770d315f0099ad3a4258f39e38735c8a9f;hpb=a14ab74c5d2803e3f1b349031430a399608e6bfd diff --git a/driver/ghci/ghci.c b/driver/ghci/ghci.c index 03a8f98..06165b5 100644 --- a/driver/ghci/ghci.c +++ b/driver/ghci/ghci.c @@ -9,6 +9,7 @@ #include int main(int argc, char** argv) { + char *binDir; char *exePath; char *preArgv[1]; @@ -18,7 +19,8 @@ int main(int argc, char** argv) { fflush(stdout); } - exePath = "ghc.exe"; + binDir = getExecutablePath(); + exePath = mkString("%s/ghc.exe", binDir); preArgv[0] = "--interactive"; run(exePath, 1, preArgv, argc - 1, argv + 1);