Commit 0bdf5ee0 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Dont use --user with --prefix

parent fe89d497
...@@ -203,8 +203,8 @@ installKernelspec replace opts = void $ do ...@@ -203,8 +203,8 @@ installKernelspec replace opts = void $ do
Just ipython <- SH.which "ipython" Just ipython <- SH.which "ipython"
let replaceFlag = ["--replace" | replace] let replaceFlag = ["--replace" | replace]
installPrefixFlag = maybe [] (\prefix -> ["--prefix", T.pack prefix]) (kernelSpecInstallPrefix opts) installPrefixFlag = maybe ["--user"] (\prefix -> ["--prefix", T.pack prefix]) (kernelSpecInstallPrefix opts)
cmd = ["kernelspec", "install", "--user", SH.toTextIgnore kernelDir] ++ replaceFlag ++ installPrefixFlag cmd = concat [["kernelspec", "install"], installPrefixFlag, [SH.toTextIgnore kernelDir], replaceFlag]
SH.silently $ SH.run ipython cmd SH.silently $ SH.run ipython cmd
kernelSpecCreated :: SH.Sh Bool kernelSpecCreated :: SH.Sh Bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment