git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ipython in different loctions.


Hi,

I noticed that the ipython on my Debian box located in the following 
locations:

werner at localhost:~$ ls .local/bin/ipython*
.local/bin/ipython  .local/bin/ipython3

werner at localhost:~$ ls .pyenv/shims/ipython*
.pyenv/shims/ipython  .pyenv/shims/ipython3


And, they are different:

--------
werner at localhost:~$ diff .pyenv/shims/ipython3 .local/bin/ipython3
1,3c1
< #!/usr/bin/env bash
< set -e
< [ -n "$PYENV_DEBUG" ] && set -x
---
> #!/usr/bin/python3
5,18c3,5
< program="${0##*/}"
< if [[ "$program" = "python"* ]]; then
<   for arg; do
<     case "$arg" in
<     -c* | -- ) break ;;
<     */* )
<       if [ -f "$arg" ]; then
<         export PYENV_FILE_ARG="$arg"
<         break
<       fi
<       ;;
<     esac
<   done
< fi
---
> # -*- coding: utf-8 -*-
> import re
> import sys
20,21c7,11
< export PYENV_ROOT="/home/werner/.pyenv"
< exec "/home/werner/.pyenv/libexec/pyenv" exec "$program" "$@"
---
> from IPython import start_ipython
> 
> if __name__ == '__main__':
>     sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
>     sys.exit(start_ipython())

----------


Any hints on this issue?