0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

fix(python): avoid local packages load

Closes #12535
This commit is contained in:
Carlo Sala 2024-07-15 19:01:58 +02:00
parent 70cfff448d
commit 6b8f72e528
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A

View file

@ -44,7 +44,7 @@ function pyuserpaths() {
alias pygrep='grep -nr --include="*.py"' alias pygrep='grep -nr --include="*.py"'
# Run proper IPython regarding current virtualenv (if any) # Run proper IPython regarding current virtualenv (if any)
alias ipython='python3 -c "import IPython, sys; sys.exit(IPython.start_ipython())"' alias ipython='python3 -c "import sys; del sys.path[0]; import IPython; sys.exit(IPython.start_ipython())"'
# Share local directory as a HTTP server # Share local directory as a HTTP server
alias pyserver="python3 -m http.server" alias pyserver="python3 -m http.server"