Skip to content

Commit 4be13bf

Browse files
committed
use env so we don't need to hardcode python3
1 parent 962f8dd commit 4be13bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Graphics/Matplotlib/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ python codeStr =
303303
(\codeFile codeHandle -> do
304304
forM_ codeStr (hPutStrLn codeHandle)
305305
hClose codeHandle
306-
Right <$> readProcess "/usr/bin/python3" [codeFile] ""))
306+
Right <$> readProcess "/usr/bin/env" ["python3", codeFile] ""))
307307
(\e -> return $ Left $ show (e :: IOException))
308308

309309
pyBackend backend = "matplotlib.use('" ++ backend ++ "')"

0 commit comments

Comments
 (0)