diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2024-07-15 19:01:58 +0200 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2024-07-15 19:03:27 +0200 |
| commit | 6b8f72e528c6bb648dcc8acb7268ac5dadd8edaa (patch) | |
| tree | 10c0c9f01289b481e0e08802cd03ea703e65870e /plugins | |
| parent | 70cfff448d15933882526d3b12411b6a6b16abf0 (diff) | |
| download | zsh-6b8f72e528c6bb648dcc8acb7268ac5dadd8edaa.tar.gz zsh-6b8f72e528c6bb648dcc8acb7268ac5dadd8edaa.tar.bz2 zsh-6b8f72e528c6bb648dcc8acb7268ac5dadd8edaa.zip | |
fix(python): avoid local packages load
Closes #12535
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/python/python.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index 7256aa04f..6d7f440aa 100644 --- a/plugins/python/python.plugin.zsh +++ b/plugins/python/python.plugin.zsh @@ -44,7 +44,7 @@ function pyuserpaths() { alias pygrep='grep -nr --include="*.py"' # 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 alias pyserver="python3 -m http.server" |
